mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add attribute types to code.InteractiveInterpreter and code.InteractiveConsole (#5830)
* mark undocumented attributes * use pep 585 generics, replace optional types with pep 604-style hints
This commit is contained in:
@@ -6,7 +6,7 @@ _ModuleMetadata = Tuple[int, float, List[str], str]
|
||||
class _SourceLoader(Protocol):
|
||||
def __call__(self) -> str | None: ...
|
||||
|
||||
cache: Dict[str, _SourceLoader | _ModuleMetadata]
|
||||
cache: Dict[str, _SourceLoader | _ModuleMetadata] # undocumented
|
||||
|
||||
def getline(filename: str, lineno: int, module_globals: _ModuleGlobals | None = ...) -> str: ...
|
||||
def clearcache() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user