mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
importlib.resouces: add as_file for Python 3.9 (#5216)
This commit is contained in:
1 parent
ce1871a5bb
commit
67090510ba
1 file changed
+2
@@ -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