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 e6f21bc commit 591ba81Copy full SHA for 591ba81
tests/samples/overload_readme.py
@@ -14,7 +14,7 @@ def say() -> str:
14
def say(count: int) -> List[str]:
15
...
16
17
- def say(count: int = None) -> Union[str, List[str]]:
+ def say(count: Optional[int] = None) -> Union[str, List[str]]:
18
pass
19
20
@@ -28,7 +28,7 @@ def say(self) -> str:
28
def say(self, count: int) -> List[str]:
29
30
31
- def say(self, count: int = None) -> Union[str, List[str]]:
+ def say(self, count: Optional[int] = None) -> Union[str, List[str]]:
32
if count is None:
33
return "Mooo"
34
return ["Mooo"] * count
0 commit comments