File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class Version:
77
77
NAMES : ClassVar [Tuple [str , ...]] = tuple ([item [1 :] for item in __slots__ ])
78
78
79
79
#: Regex for number in a prerelease
80
- _LAST_NUMBER : ClassVar [Pattern ] = re .compile (r"(?:[^\d]*(\d+)[^\d]*)+" )
80
+ _LAST_NUMBER : ClassVar [Pattern [ str ] ] = re .compile (r"(?:[^\d]*(\d+)[^\d]*)+" )
81
81
#: Regex template for a semver version
82
82
_REGEX_TEMPLATE : ClassVar [
83
83
str
@@ -103,12 +103,12 @@ class Version:
103
103
$
104
104
"""
105
105
#: Regex for a semver version
106
- _REGEX : ClassVar [Pattern ] = re .compile (
106
+ _REGEX : ClassVar [Pattern [ str ] ] = re .compile (
107
107
_REGEX_TEMPLATE .format (opt_patch = "" , opt_minor = "" ),
108
108
re .VERBOSE ,
109
109
)
110
110
#: Regex for a semver version that might be shorter
111
- _REGEX_OPTIONAL_MINOR_AND_PATCH : ClassVar [Pattern ] = re .compile (
111
+ _REGEX_OPTIONAL_MINOR_AND_PATCH : ClassVar [Pattern [ str ] ] = re .compile (
112
112
_REGEX_TEMPLATE .format (opt_patch = "?" , opt_minor = "?" ),
113
113
re .VERBOSE ,
114
114
)
You can’t perform that action at this time.
0 commit comments