Skip to content

Commit

Permalink
upath.implementations.local: guard import Self
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Sep 3, 2024
1 parent f265730 commit 491e638
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions upath/implementations/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
from pathlib import PosixPath
from pathlib import WindowsPath
from typing import Any
from typing import Self
from urllib.parse import SplitResult

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

from upath._uris import compatible_protocol
from upath.core import UPath
from upath.core import UPathLike

__all__ = [
"LocalPath",
Expand All @@ -17,8 +22,6 @@
"WindowsUPath",
]

from upath.core import UPathLike

_LISTDIR_WORKS_ON_FILES: bool | None = None


Expand Down

0 comments on commit 491e638

Please sign in to comment.