Skip to content

Commit 3025609

Browse files
gvanrossummatthiaskramm
authored andcommitted
Use explicit Optional[] on argument types with default None (#1420)
1 parent 5e74bb3 commit 3025609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/3/_importlib_modulespec.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ from typing import Dict, Any, Optional
1212
if sys.version_info >= (3, 4):
1313
class ModuleSpec:
1414
def __init__(self, name: str, loader: Optional['Loader'], *,
15-
origin: str = None, loader_state: Any = None,
16-
is_package: bool = None) -> None: ...
15+
origin: Optional[str] = None, loader_state: Any = None,
16+
is_package: Optional[bool] = None) -> None: ...
1717
name = ... # type: str
1818
loader = ... # type: Optional[Loader]
1919
origin = ... # type: Optional[str]

0 commit comments

Comments
 (0)