Skip to content

Commit 96bde80

Browse files
committed
Fix type hint for Python 3.8+
1 parent 2a0851a commit 96bde80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hdx/utilities/matching.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_code_from_name(
6767
unmatched: List[str],
6868
fuzzy_match: bool = True,
6969
match_threshold: int = 5,
70-
) -> str | None:
70+
) -> Optional[str]:
7171
"""
7272
Given a name (org type, sector, etc), return the corresponding code.
7373
@@ -79,7 +79,7 @@ def get_code_from_name(
7979
match_threshold (int): Match threshold
8080
8181
Returns:
82-
str or None: Matching code
82+
Optional[str]: Matching code
8383
"""
8484
code = code_lookup.get(name)
8585
if code:

0 commit comments

Comments
 (0)