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:
7777 NAMES : ClassVar [Tuple [str , ...]] = tuple ([item [1 :] for item in __slots__ ])
7878
7979 #: 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]*)+" )
8181 #: Regex template for a semver version
8282 _REGEX_TEMPLATE : ClassVar [
8383 str
@@ -103,12 +103,12 @@ class Version:
103103 $
104104 """
105105 #: Regex for a semver version
106- _REGEX : ClassVar [Pattern ] = re .compile (
106+ _REGEX : ClassVar [Pattern [ str ] ] = re .compile (
107107 _REGEX_TEMPLATE .format (opt_patch = "" , opt_minor = "" ),
108108 re .VERBOSE ,
109109 )
110110 #: 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 (
112112 _REGEX_TEMPLATE .format (opt_patch = "?" , opt_minor = "?" ),
113113 re .VERBOSE ,
114114 )
You can’t perform that action at this time.
0 commit comments