We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8c280 commit e463667Copy full SHA for e463667
nimporter/nexporter.py
@@ -276,7 +276,7 @@ def prevent_win32_max_path_length_error(path: Path) -> None:
276
That's a lot less characters!
277
"""
278
279
- def _is_valid_identifier(string: str) -> Union[re.Match[str], None, bool]:
+ def _is_valid_identifier(string: str) -> bool:
280
match = re.search('^[A-Za-z_][A-Z-a-z0-9_\\-]*', string)
281
return match and len(match.string) == len(string)
282
0 commit comments