Skip to content

Commit c5072e1

Browse files
authored
Updating type hint, |, to Union to be compatible with older versions of Python. (#5)
1 parent b44cf8f commit c5072e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pre_commit_hooks/check_template_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import argparse
1515
import os
16-
from typing import Sequence
16+
from typing import Sequence, Union
1717

1818
import git
1919
import yaml
@@ -119,7 +119,7 @@ def check_version(copier_answers_file: str) -> int:
119119
return 0
120120

121121

122-
def main(argv: Sequence[str] | None = None) -> int:
122+
def main(argv: Union[Sequence[str], None] = None) -> int:
123123
"""Parse input arguments and return results of `check_version`"""
124124

125125
parser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)