We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44339c commit 151e08aCopy full SHA for 151e08a
stdlib/@tests/test_cases/check_importlib_resources.py
@@ -1,7 +1,5 @@
1
from __future__ import annotations
2
3
-import importlib.resources
4
-import pathlib
5
import sys
6
7
@@ -11,6 +9,8 @@ def __fspath__(self) -> str:
11
9
12
10
13
if sys.version_info >= (3, 13):
+ import importlib.resources
+ import pathlib
14
15
def f(pth: pathlib.Path | str | _CustomPathLike) -> None:
16
importlib.resources.open_binary("pkg", pth)
0 commit comments