Skip to content

Commit a06e239

Browse files
committed
Pass mypy and link issues
1 parent 76063f4 commit a06e239

File tree

3 files changed

+57
-6
lines changed

3 files changed

+57
-6
lines changed

mypy.ini

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,54 @@ explicit_package_bases = True
1212

1313
# Disable overload-overlap due to many false-positives
1414
disable_error_code = overload-overlap
15+
16+
17+
# jaraco/jaraco.mongodb#41
18+
[mypy-jaraco.mongodb.*]
19+
ignore_missing_imports = True
20+
21+
# jaraco/jaraco.itertools#20
22+
[mypy-jaraco.itertools.*]
23+
ignore_missing_imports = True
24+
25+
# jaraco/jaraco.text#17
26+
[mypy-jaraco.text.*]
27+
ignore_missing_imports = True
28+
29+
# jaraco/jaraco.logging#6
30+
[mypy-jaraco.logging.*]
31+
ignore_missing_imports = True
32+
33+
# jaraco/jaraco.email#4
34+
[mypy-jaraco.email.*]
35+
ignore_missing_imports = True
36+
37+
# jaraco/jaraco.fabric#8
38+
[mypy-jaraco.fabric.*]
39+
ignore_missing_imports = True
40+
41+
# jaraco/jaraco.modb#3
42+
[mypy-jaraco.modb.*]
43+
ignore_missing_imports = True
44+
45+
# cherrypy/cherrypy#1510
46+
[mypy-cherrypy.*]
47+
ignore_missing_imports = True
48+
49+
# jsonpickle/jsonpickle#441
50+
[mypy-jsonpickle.*]
51+
ignore_missing_imports = True
52+
53+
# shon/httpagentparser#93
54+
[mypy-httpagentparser.*]
55+
ignore_missing_imports = True
56+
57+
# dropbox/dropbox-sdk-python#419
58+
[mypy-dropbox.*]
59+
ignore_missing_imports = True
60+
61+
# TODO: Raise issues upstream
62+
[mypy-fabric.*]
63+
ignore_missing_imports = True
64+
[mypy-genshi.*]
65+
ignore_missing_imports = True

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,3 @@ recapture-docs = "recapturedocs.server:handle_command_line"
9999

100100

101101
[tool.setuptools_scm]
102-
103-
104-
[tool.pytest-enabler.mypy]
105-
# Disabled due to jaraco/skeleton#143

recapturedocs/jsonpickle.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
A few handlers to make sure recapturedocs objects are serializable to JSON
33
"""
44

5+
from __future__ import annotations
6+
7+
from typing import ClassVar
8+
59
import jsonpickle
610

711
# TODO: what types are returned for ResultSet and HIT?
@@ -28,7 +32,7 @@ def restore(self, data):
2832

2933

3034
class OldStyleClassParamsHandler(jsonpickle.handlers.BaseHandler):
31-
params = ()
35+
params: ClassVar[tuple[object, ...]] = ()
3236

3337
def flatten(self, obj, data):
3438
data.update(self._base.flatten(vars(obj)))
@@ -42,7 +46,7 @@ def restore(self, data):
4246

4347

4448
class OldStyleClassParamsHandler_None(OldStyleClassParamsHandler):
45-
params = (None,) # type: ignore
49+
params = (None,)
4650

4751

4852
def setup_handlers():

0 commit comments

Comments
 (0)