mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 22:10:10 +08:00
Move imports into version_info branch (#13684)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib.resources
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
|
||||
@@ -11,6 +9,8 @@ class _CustomPathLike:
|
||||
|
||||
|
||||
if sys.version_info >= (3, 13):
|
||||
import importlib.resources
|
||||
import pathlib
|
||||
|
||||
def f(pth: pathlib.Path | str | _CustomPathLike) -> None:
|
||||
importlib.resources.open_binary("pkg", pth)
|
||||
|
||||
Reference in New Issue
Block a user