We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d2573 commit 46426e9Copy full SHA for 46426e9
src/setuptools_scm/config.py
@@ -8,6 +8,7 @@
8
from typing import Callable
9
from typing import cast
10
from typing import Pattern
11
+from typing import Type
12
from typing import TYPE_CHECKING
13
from typing import Union
14
@@ -96,7 +97,7 @@ def _validate_version_cls(
96
97
98
pkg, cls_name = version_cls.rsplit(".", 1)
99
version_cls_host = importlib.import_module(pkg)
- return cast(type[_VersionT], getattr(version_cls_host, cls_name))
100
+ return cast(Type[_VersionT], getattr(version_cls_host, cls_name))
101
except: # noqa
102
raise ValueError(f"Unable to import version_cls='{version_cls}'")
103
else:
0 commit comments