Skip to content

Commit

Permalink
Merge pull request #18 from ic-it/patch-1
Browse files Browse the repository at this point in the history
Use __all__ instead of declaring var
  • Loading branch information
LBeaudoux authored Mar 14, 2024
2 parents e4c7b04 + e82c6bc commit 415be57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions iso639/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from .datafile import load_langs
from .iso639 import Lang

Lang = Lang


def iter_langs() -> Iterator[Lang]:
"""Iterate through all not deprecated ISO 639 languages
Expand All @@ -17,3 +15,8 @@ def iter_langs() -> Iterator[Lang]:
sorted_langs = load_langs()

return iter(sorted_langs)

__all__ = [
"Lang",
"iter_langs",
]

0 comments on commit 415be57

Please sign in to comment.