File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ v6.4.2
2+ ======
3+
4+ * fix #671 : NoReturn is not avaliable in painfully dead python 3.6
5+
6+
17v6.4.1
28=======
39
Original file line number Diff line number Diff line change 44"""
55import os
66import warnings
7- from typing import NoReturn
87from typing import Optional
8+ from typing import TYPE_CHECKING
99
1010from . import _types
1111from ._entrypoints import _call_entrypoint_fn
2727from .version import meta
2828from .version import ScmVersion
2929
30+ if TYPE_CHECKING :
31+ from typing import NoReturn
32+
33+
3034TEMPLATES = {
3135 ".py" : """\
3236 # coding: utf-8
@@ -98,7 +102,7 @@ def _do_parse(config: Configuration) -> "ScmVersion|None":
98102 return version
99103
100104
101- def _version_missing (config ) -> NoReturn :
105+ def _version_missing (config ) -> " NoReturn" :
102106 raise LookupError (
103107 f"setuptools-scm was unable to detect version for { config .absolute_root } .\n \n "
104108 "Make sure you're either building from a fully intact git repository "
You can’t perform that action at this time.
0 commit comments