mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use explicit Optional[] on argument types with default None (#1420)
This commit is contained in:
committed by
Matthias Kramm
parent
5e74bb3efc
commit
30256097ea
@@ -12,8 +12,8 @@ from typing import Dict, Any, Optional
|
||||
if sys.version_info >= (3, 4):
|
||||
class ModuleSpec:
|
||||
def __init__(self, name: str, loader: Optional['Loader'], *,
|
||||
origin: str = None, loader_state: Any = None,
|
||||
is_package: bool = None) -> None: ...
|
||||
origin: Optional[str] = None, loader_state: Any = None,
|
||||
is_package: Optional[bool] = None) -> None: ...
|
||||
name = ... # type: str
|
||||
loader = ... # type: Optional[Loader]
|
||||
origin = ... # type: Optional[str]
|
||||
|
||||
Reference in New Issue
Block a user