Skip to content

Commit

Permalink
fix TypeError in Python 3.8-3.9
Browse files Browse the repository at this point in the history
TypeError: unsupported operand type(s) for |: 'type' and 'type'
  • Loading branch information
benhovinga committed Dec 31, 2023
1 parent 4a22f6a commit 30cf15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aamva_standard/barcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def trim_to_indicator(_str: str, indicator: str) -> str:
return _str


def read_file_header(file: str) -> dict[str, int | str]:
def read_file_header(file: str) -> dict[str, "int | str"]:
file = trim_to_indicator(file, COMPLIANCE_INDICATOR)
if file[4:9] != "ANSI ":
raise ValueError(f"header file type missing \"{file[4:9]}\" != \"ANSI \"")
Expand Down

0 comments on commit 30cf15a

Please sign in to comment.