mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
importlib.resouces: add as_file for Python 3.9 (#5216)
This commit is contained in:
@@ -19,5 +19,7 @@ if sys.version_info >= (3, 7):
|
||||
def contents(package: Package) -> Iterator[str]: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from contextlib import AbstractContextManager
|
||||
from importlib.abc import Traversable
|
||||
def files(package: Package) -> Traversable: ...
|
||||
def as_file(path: Traversable) -> AbstractContextManager[Path]: ...
|
||||
|
||||
Reference in New Issue
Block a user