mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Update linecache.pyi (#7623)
The `mtime` in linecache entries can be set to `None` for files loaded via a `__loader__` (cf: https://github.com/python/cpython/blob/3.10/Lib/linecache.py#L70)
This commit is contained in:
@@ -7,7 +7,7 @@ else:
|
||||
__all__ = ["getline", "clearcache", "checkcache"]
|
||||
|
||||
_ModuleGlobals = dict[str, Any]
|
||||
_ModuleMetadata = tuple[int, float, list[str], str]
|
||||
_ModuleMetadata = tuple[int, float | None, list[str], str]
|
||||
|
||||
class _SourceLoader(Protocol):
|
||||
def __call__(self) -> str | None: ...
|
||||
|
||||
Reference in New Issue
Block a user