Update importlib cache,source return types to StrPath (#13509)

This has been true since Python 3.6.
This commit is contained in:
Richard Si
2025-02-17 19:05:15 -05:00
committed by GitHub
parent 0149a15551
commit 4050dd42ef
+2 -2
View File
@@ -26,8 +26,8 @@ else:
MAGIC_NUMBER: bytes
def cache_from_source(path: str, debug_override: bool | None = None, *, optimization: Any | None = None) -> str: ...
def source_from_cache(path: str) -> str: ...
def cache_from_source(path: StrPath, debug_override: bool | None = None, *, optimization: Any | None = None) -> str: ...
def source_from_cache(path: StrPath) -> str: ...
def decode_source(source_bytes: ReadableBuffer) -> str: ...
def spec_from_file_location(
name: str,