Skip to content

Commit

Permalink
delay type hinting until our oldest supported python allows list[str]
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Kienzle committed Oct 23, 2024
1 parent d9c5953 commit 789c341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion periodictable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __getattr__(name: str):
if name in _LAZY_MODULES:
return importlib.import_module(f'{__name__}.{name}')
raise AttributeError(f"{__name__}.{name} not found")
def __dir__() -> list[str]:
def __dir__():
return __all__

# Export variables for each element name and symbol.
Expand Down

0 comments on commit 789c341

Please sign in to comment.