File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,5 @@ python_version = 3.8
10
10
strict = True
11
11
enable_error_code = truthy-bool,ignore-without-code
12
12
13
- # except for a few settings that can't yet be enabled:
14
- warn_return_any = False
15
- warn_unreachable = False
13
+ # except for incomplete defs, which are useful for module authors:
14
+ disallow_incomplete_defs = False
Original file line number Diff line number Diff line change 16
16
import sys
17
17
import sysconfig
18
18
import zipfile
19
- from typing import Dict
19
+ from typing import Dict , cast
20
20
21
21
# source directory
22
22
SRCDIR = pathlib .Path (__file__ ).parent .parent .parent .absolute ()
@@ -111,7 +111,8 @@ def get_builddir(args: argparse.Namespace) -> pathlib.Path:
111
111
112
112
def get_sysconfigdata (args : argparse .Namespace ) -> pathlib .Path :
113
113
"""Get path to sysconfigdata relative to build root"""
114
- data_name = sysconfig ._get_sysconfigdata_name () # type: ignore[attr-defined]
114
+ assert isinstance (args .builddir , pathlib .Path )
115
+ data_name : str = sysconfig ._get_sysconfigdata_name () # type: ignore[attr-defined]
115
116
if not data_name .startswith (SYSCONFIG_NAMES ):
116
117
raise ValueError (
117
118
f"Invalid sysconfig data name '{ data_name } '." , SYSCONFIG_NAMES
You can’t perform that action at this time.
0 commit comments