Skip to content

Commit e463667

Browse files
committed
Fix type hints
1 parent 0b8c280 commit e463667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nimporter/nexporter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def prevent_win32_max_path_length_error(path: Path) -> None:
276276
That's a lot less characters!
277277
"""
278278

279-
def _is_valid_identifier(string: str) -> Union[re.Match[str], None, bool]:
279+
def _is_valid_identifier(string: str) -> bool:
280280
match = re.search('^[A-Za-z_][A-Z-a-z0-9_\\-]*', string)
281281
return match and len(match.string) == len(string)
282282

0 commit comments

Comments
 (0)