Skip to content

Commit 0d3c4ac

Browse files
authored
Add type hint for _version in .version.Version (#927)
1 parent 258202e commit 0d3c4ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/packaging/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class Version(_BaseVersion):
183183
"""
184184

185185
_regex = re.compile(r"^\s*" + VERSION_PATTERN + r"\s*$", re.VERBOSE | re.IGNORECASE)
186+
_version: _Version
186187
_key: CmpKey
187188

188189
def __init__(self, version: str) -> None:

0 commit comments

Comments
 (0)