File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4798,7 +4798,7 @@ type hinting syntax compared to :data:`typing.Union`.
4798
4798
4799
4799
.. describe :: isinstance(obj, union_object)
4800
4800
4801
- Calls to :func: `isinstance ` are also supported with a Union object::
4801
+ Calls to :func: `isinstance ` are also supported with a union object::
4802
4802
4803
4803
>>> isinstance("", int | str)
4804
4804
True
@@ -4819,7 +4819,7 @@ type hinting syntax compared to :data:`typing.Union`.
4819
4819
4820
4820
.. describe :: issubclass(obj, union_object)
4821
4821
4822
- Calls to :func: `issubclass ` are also supported with a Union Object. ::
4822
+ Calls to :func: `issubclass ` are also supported with a union object ::
4823
4823
4824
4824
>>> issubclass(bool, int | str)
4825
4825
True
@@ -4837,7 +4837,7 @@ type hinting syntax compared to :data:`typing.Union`.
4837
4837
File "<stdin>", line 1, in <module>
4838
4838
TypeError: issubclass() argument 2 cannot contain a parameterized generic
4839
4839
4840
- The type for the Union object is :data: `types.Union `. An object cannot be
4840
+ The type of a union object is :data: `types.Union `. An object cannot be
4841
4841
instantiated from the type::
4842
4842
4843
4843
>>> import types
You can’t perform that action at this time.
0 commit comments