Skip to content

Commit 17ab9b2

Browse files
committed
Downgrade typing syntax
1 parent 0a93306 commit 17ab9b2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ deps =
101101
furo
102102
sphinx
103103
commands =
104+
python --version
104105
sphinx-apidoc \
105106
--force \
106107
--implicit-namespaces \

src/repoman/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
import configparser
55
import sys
66
from pathlib import Path
7-
from typing import NoReturn
7+
from typing import NoReturn, Union
88

99

1010
FAIL = "\033[91m"
1111
ENDC = "\033[0m"
1212
REPO_TYPES_CFG = "repo-types.cfg"
1313

1414

15-
def check_if_allowed(path: Path) -> bool | NoReturn:
15+
def check_if_allowed(path: Path) -> Union[bool, NoReturn]:
1616
if REPO_TYPES_CFG not in (str(item) for item in path.iterdir()):
1717
print(f"{FAIL}The current directory is not configured for repository management{ENDC}")
1818
sys.exit(1)

0 commit comments

Comments
 (0)