Skip to content

Commit 7793c97

Browse files
committed
Fix type annotation for py38
1 parent a9c95fa commit 7793c97

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spin/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77
import textwrap
88
import traceback
9+
from typing import Union
910

1011
import click
1112

@@ -30,7 +31,7 @@
3031
)
3132

3233

33-
def _detect_config_dir(path: pathlib.Path) -> pathlib.Path | None:
34+
def _detect_config_dir(path: pathlib.Path) -> Union[pathlib.Path, None]:
3435
path = path.resolve()
3536
files = os.listdir(path)
3637
if any(f in files for f in config_filenames):

0 commit comments

Comments
 (0)