Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Commit f639982

Browse files
committed
Fixed annotation for Python 3.9
1 parent c2b341d commit f639982

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/adif_file/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import re
66
import sys
77
import datetime
8+
from typing import Union
89

910

1011
def get_cur_adif_dt() -> str:
@@ -65,7 +66,7 @@ def check_format(exp: re.Pattern, txt: str) -> bool:
6566
return bool(re.fullmatch(exp, txt))
6667

6768

68-
def check_call(call: str) -> None | tuple:
69+
def check_call(call: str) -> Union[None, tuple]:
6970
"""Test a call sign against a regular expression
7071
:param call: a call sign
7172
:return: tuple of parts ('Country prefix/', 'Call sign', '/Operation suffix')"""

0 commit comments

Comments
 (0)