Skip to content

Commit

Permalink
Add version using importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
frank113 committed Jul 1, 2023
1 parent f545fe5 commit fce4b23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions argparse_dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@
MISSING,
dataclass as real_dataclass,
)
from importlib.metadata import version

__version__ = version("argparse_dataclass")

if hasattr(argparse, "BooleanOptionalAction"):
# BooleanOptionalAction was added in Python 3.9
Expand Down

0 comments on commit fce4b23

Please sign in to comment.