Skip to content

Commit 627de46

Browse files
committed
upath.types: fix type error on py3.9
1 parent 2ca57d4 commit 627de46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

upath/types/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from os import PathLike
77
from typing import TYPE_CHECKING
88
from typing import Any
9+
from typing import Optional
910
from typing import Protocol
1011
from typing import Union
1112
from typing import runtime_checkable
@@ -129,5 +130,5 @@ def splitroot(self, path: JoinablePathLike) -> tuple[str, str, str]: ...
129130

130131

131132
OnNameCollisionFunc: TypeAlias = Callable[
132-
[ReadablePath, WritablePath], tuple[WritablePath | None, WritablePath | None]
133+
[ReadablePath, WritablePath], tuple[Optional[WritablePath], Optional[WritablePath]]
133134
]

0 commit comments

Comments
 (0)