We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51ce89 commit 0a8f8f0Copy full SHA for 0a8f8f0
Doc/library/typing.rst
@@ -442,10 +442,10 @@ For example::
442
new_non_team_user(RegularUser) # OK
443
new_non_team_user(HeroUser) # OK
444
445
- new_non_team_user(ManagerUser) # Error: ``type[ManagerUser]`` is not a subtype
446
- # of ``type[BasicUser | ProUser]``
447
new_non_team_user(TeamUser) # Error: ``type[TeamUser]`` is not a subtype
448
# of ``type[BasicUser | ProUser]``
+ new_non_team_user(ManagerUser) # Error: ``type[ManagerUser]`` is not a subtype
+ # of ``type[BasicUser | ProUser]``
449
new_non_team_user(User) # Also an error
450
451
``type[Any]`` is equivalent to :class:`type`, which is the root of Python's
0 commit comments