File tree 6 files changed +36
-19
lines changed
6 files changed +36
-19
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,25 @@ explicit_package_bases = True
13
13
disable_error_code =
14
14
# Disable due to many false positives
15
15
overload-overlap,
16
+
17
+ # jaraco/jaraco.env#2
18
+ # jaraco/jaraco.env#3
19
+ [mypy-jaraco.env]
20
+ ignore_missing_imports = True
21
+
22
+ # jaraco/jaraco.path#2
23
+ [mypy-jaraco.path]
24
+ ignore_missing_imports = True
25
+
26
+ # jaraco/jaraco.text#17
27
+ [mypy-jaraco.text]
28
+ ignore_missing_imports = True
29
+
30
+ # Tries to install grcpio which does not build. Only used for an example anyway
31
+ [mypy-pydragon]
32
+ ignore_missing_imports = True
33
+
34
+ # jaraco/jaraco.develop#20
35
+ # Lucretiel/autocommand#38
36
+ [mypy-autocommand.*]
37
+ ignore_missing_imports = True
Original file line number Diff line number Diff line change 2
2
import contextlib
3
3
import pathlib
4
4
5
- from jaraco import env # type: ignore # (python/mypy#15970)
5
+ import jaraco . env as env
6
6
from jaraco .context import suppress
7
7
from jaraco .functools import bypass_when
8
8
from more_itertools import locate , split_at
Original file line number Diff line number Diff line change 2
2
Compatibility for Python 3.10 and earlier.
3
3
"""
4
4
5
+ import sys
6
+
5
7
__all__ = ['tomllib' ]
6
8
7
9
8
- try :
9
- import tomllib # type: ignore
10
- except ImportError : # pragma: no cover
11
- import tomli as tomllib # type: ignore
10
+ if sys . version_info >= ( 3 , 11 ) :
11
+ import tomllib
12
+ else :
13
+ import tomli as tomllib
Original file line number Diff line number Diff line change 7
7
str if sys .version_info < (3 , 9 ) and platform .system () == 'Windows' else identity
8
8
)
9
9
10
-
11
- try :
12
- from importlib .resources import files # type: ignore
13
- except ImportError : # pragma: no cover
14
- from importlib_resources import files # type: ignore
15
-
16
-
17
- files = files
10
+ if sys .version_info >= (3 , 9 ):
11
+ from importlib .resources import files as files
12
+ else : # pragma: no cover
13
+ from importlib_resources import files as files
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def separator(input) -> str:
18
18
@autocommand .autocommand (__name__ )
19
19
def run (
20
20
script : path .ExtantFile ,
21
- separator : separator = ' ' , # type: ignore
21
+ separator : separator = ' ' , # type: ignore[valid-type]
22
22
):
23
23
"""
24
24
>>> run(['examples/test-mongodb-covered-query.py'])
@@ -30,5 +30,5 @@ def run(
30
30
pytest
31
31
jaraco.mongodb>=3.10
32
32
"""
33
- joiner = separator .join # type: ignore
33
+ joiner = separator .join # type: ignore[attr-defined]
34
34
print (joiner (DepsReader .try_read (pathlib .Path (script )).params ()))
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ type = [
81
81
" pytest-mypy" ,
82
82
83
83
# local
84
+ " cowsay" ,
84
85
]
85
86
86
87
@@ -100,7 +101,3 @@ namespaces = true
100
101
101
102
102
103
[tool .setuptools_scm ]
103
-
104
-
105
- [tool .pytest-enabler .mypy ]
106
- # Disabled due to jaraco/skeleton#143
You can’t perform that action at this time.
0 commit comments