Skip to content

Commit 0a8f8f0

Browse files
authored
Change order of examples
1 parent b51ce89 commit 0a8f8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ For example::
442442
new_non_team_user(RegularUser) # OK
443443
new_non_team_user(HeroUser) # OK
444444

445-
new_non_team_user(ManagerUser) # Error: ``type[ManagerUser]`` is not a subtype
446-
# of ``type[BasicUser | ProUser]``
447445
new_non_team_user(TeamUser) # Error: ``type[TeamUser]`` is not a subtype
448446
# of ``type[BasicUser | ProUser]``
447+
new_non_team_user(ManagerUser) # Error: ``type[ManagerUser]`` is not a subtype
448+
# of ``type[BasicUser | ProUser]``
449449
new_non_team_user(User) # Also an error
450450

451451
``type[Any]`` is equivalent to :class:`type`, which is the root of Python's

0 commit comments

Comments
 (0)