Skip to content

Commit 7f9be7f

Browse files
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)
1 parent 40985b4 commit 7f9be7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/linecache.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else:
77
__all__ = ["getline", "clearcache", "checkcache"]
88

99
_ModuleGlobals = dict[str, Any]
10-
_ModuleMetadata = tuple[int, float, list[str], str]
10+
_ModuleMetadata = tuple[int, float | None, list[str], str]
1111

1212
class _SourceLoader(Protocol):
1313
def __call__(self) -> str | None: ...

0 commit comments

Comments
 (0)