aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2022-07-09 20:21:06 +0200
committerJ08nY2022-07-09 20:22:32 +0200
commit2f55c0bcced4b4f8ebab3d22ca8a8a365958ed6f (patch)
treec86eab24896df0620637bf6c358c896864f7afea
parent3d17e0f3bebab559db7bfda6fc1288cdca1aee34 (diff)
downloadsec-certs-2f55c0bcced4b4f8ebab3d22ca8a8a365958ed6f.tar.gz
sec-certs-2f55c0bcced4b4f8ebab3d22ca8a8a365958ed6f.tar.zst
sec-certs-2f55c0bcced4b4f8ebab3d22ca8a8a365958ed6f.zip
Fix mypy warning with new mypy version.
-rw-r--r--sec_certs/serialization/json.py4
-rw-r--r--sec_certs/utils/helpers.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/sec_certs/serialization/json.py b/sec_certs/serialization/json.py
index 1664f799..f54b3c26 100644
--- a/sec_certs/serialization/json.py
+++ b/sec_certs/serialization/json.py
@@ -3,12 +3,14 @@ import json
from datetime import date
from functools import wraps
from pathlib import Path
-from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union
+from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union, Tuple
T = TypeVar("T")
class ComplexSerializableType:
+ __slots__: Tuple[str]
+
def __init__(self, *args, **kwargs):
pass
diff --git a/sec_certs/utils/helpers.py b/sec_certs/utils/helpers.py
index faaaef0d..8cabc89d 100644
--- a/sec_certs/utils/helpers.py
+++ b/sec_certs/utils/helpers.py
@@ -34,7 +34,7 @@ def download_file(
time.sleep(delay)
# See https://github.com/psf/requests/issues/3953 for header justification
r = requests.get(
- url, allow_redirects=True, timeout=constants.REQUEST_TIMEOUT, stream=True, headers={"Accept-Encoding": None}
+ url, allow_redirects=True, timeout=constants.REQUEST_TIMEOUT, stream=True, headers={"Accept-Encoding": None} # type: ignore
)
ctx: Any
if show_progress_bar: