mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-12 16:10:12 +08:00
Update importlib cache,source return types to StrPath (#13509)
This has been true since Python 3.6.
This commit is contained in:
1 parent
0149a15551
commit
4050dd42ef
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user