Skip to content

Commit

Permalink
Fix type annotation for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Sep 5, 2024
1 parent a9c95fa commit 7793c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spin/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sys
import textwrap
import traceback
from typing import Union

import click

Expand All @@ -30,7 +31,7 @@
)


def _detect_config_dir(path: pathlib.Path) -> pathlib.Path | None:
def _detect_config_dir(path: pathlib.Path) -> Union[pathlib.Path, None]:
path = path.resolve()
files = os.listdir(path)
if any(f in files for f in config_filenames):
Expand Down

0 comments on commit 7793c97

Please sign in to comment.