Skip to content

Commit dacaa18

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

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-6
lines changed

mypy.ini

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

1313
# Disable overload-overlap due to many false-positives
1414
disable_error_code = overload-overlap
15+
16+
# jaraco/jaraco.email#4
17+
[mypy-jaraco.email.*]
18+
ignore_missing_imports = True
19+
20+
# jaraco/jaraco.fabric#8
21+
[mypy-jaraco.fabric.*]
22+
ignore_missing_imports = True
23+
24+
# jaraco/jaraco.modb#3
25+
[mypy-jaraco.modb.*]
26+
ignore_missing_imports = True
27+
28+
# cherrypy/cherrypy#1510
29+
[mypy-cherrypy.*]
30+
ignore_missing_imports = True
31+
32+
# jsonpickle/jsonpickle#441
33+
[mypy-jsonpickle.*]
34+
ignore_missing_imports = True
35+
36+
# shon/httpagentparser#93
37+
[mypy-httpagentparser.*]
38+
ignore_missing_imports = True
39+
40+
# dropbox/dropbox-sdk-python#419
41+
[mypy-dropbox.*]
42+
ignore_missing_imports = True
43+
44+
# TODO: Raise issues upstream
45+
[mypy-fabric.*]
46+
ignore_missing_imports = True
47+
[mypy-genshi.*]
48+
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)