Skip to content

Commit

Permalink
simplify handling of importlib-metadata.version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Apr 7, 2024
1 parent bd16be9 commit b29b4b2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/poetry/__version__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from poetry.utils._compat import metadata


if TYPE_CHECKING:
from collections.abc import Callable


# The metadata.version that we import for Python 3.7 is untyped, work around
# that.
version: Callable[[str], str] = metadata.version

__version__ = version("poetry")
__version__ = metadata.version("poetry")

0 comments on commit b29b4b2

Please sign in to comment.