All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 from typing import NoReturn, Protocol, Union, overload
9 def a(arg: int) -> int: ...
11 def a(arg: str) -> str: ...
13 def a(arg: object) -> NoReturn: ...
14 def a(arg: Union[int, str, object]) -> Union[int, str]:
15 if not isinstance(arg, (int, str)):
19 class Proto(Protocol):
20 def foo(self, a: int) -> int:
23 def bar(self, b: str) -> str: ...
24 def baz(self, c: bytes) -> str:
38 def b(arg: int) -> int: ...
41 def b(arg: str) -> str: ...
43 def b(arg: object) -> NoReturn: ...
45 def b(arg: Union[int, str, object]) -> Union[int, str]:
46 if not isinstance(arg, (int, str)):
52 from typing import NoReturn, Protocol, Union, overload
60 def a(arg: int) -> int: ...
62 def a(arg: str) -> str: ...
64 def a(arg: object) -> NoReturn: ...
65 def a(arg: Union[int, str, object]) -> Union[int, str]:
66 if not isinstance(arg, (int, str)):
71 class Proto(Protocol):
72 def foo(self, a: int) -> int: ...
74 def bar(self, b: str) -> str: ...
75 def baz(self, c: bytes) -> str: ...
80 def dummy_three(): ...
87 def b(arg: int) -> int: ...
91 def b(arg: str) -> str: ...
93 def b(arg: object) -> NoReturn: ...
96 def b(arg: Union[int, str, object]) -> Union[int, str]:
97 if not isinstance(arg, (int, str)):