Skip to content

Commit

Permalink
Update linecache.pyi (#7623)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
till-varoquaux authored Apr 14, 2022
1 parent 40985b4 commit 7f9be7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/linecache.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit 7f9be7f

Please sign in to comment.