Commit ee5944f 1 parent c585e20 commit ee5944f Copy full SHA for ee5944f
File tree 2 files changed +12
-2
lines changed
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
+
1
7
v6.4.1
2
8
=======
3
9
Original file line number Diff line number Diff line change 4
4
"""
5
5
import os
6
6
import warnings
7
- from typing import NoReturn
8
7
from typing import Optional
8
+ from typing import TYPE_CHECKING
9
9
10
10
from . import _types
11
11
from ._entrypoints import _call_entrypoint_fn
27
27
from .version import meta
28
28
from .version import ScmVersion
29
29
30
+ if TYPE_CHECKING :
31
+ from typing import NoReturn
32
+
33
+
30
34
TEMPLATES = {
31
35
".py" : """\
32
36
# coding: utf-8
@@ -98,7 +102,7 @@ def _do_parse(config: Configuration) -> "ScmVersion|None":
98
102
return version
99
103
100
104
101
- def _version_missing (config ) -> NoReturn :
105
+ def _version_missing (config ) -> " NoReturn" :
102
106
raise LookupError (
103
107
f"setuptools-scm was unable to detect version for { config .absolute_root } .\n \n "
104
108
"Make sure you're either building from a fully intact git repository "
You can’t perform that action at this time.
0 commit comments