aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:28:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:52:44 -0700
commitdc5ef73edfbddda3bfb1bc53914bd77c34245f04 (patch)
treeb3ba0a2eefc8e7b5e0c99ce5660707f3181d16fd /python/fatcat_web
parent7bf6db7237345c678a890ebbf500392d5d0ad505 (diff)
downloadfatcat-dc5ef73edfbddda3bfb1bc53914bd77c34245f04.tar.gz
fatcat-dc5ef73edfbddda3bfb1bc53914bd77c34245f04.zip
ignore type errors in cors.py (third party code)
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/cors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/cors.py b/python/fatcat_web/cors.py
index b0f33760..b68c7972 100644
--- a/python/fatcat_web/cors.py
+++ b/python/fatcat_web/cors.py
@@ -23,7 +23,7 @@ def crossdomain(
if headers is not None and not isinstance(headers, str):
headers = ", ".join(x.upper() for x in headers)
if not isinstance(origin, str):
- origin = ", ".join(origin)
+ origin = ", ".join(origin) # type: ignore
if isinstance(max_age, timedelta):
max_age = max_age.total_seconds()
@@ -45,7 +45,7 @@ def crossdomain(
h = resp.headers
- h["Access-Control-Allow-Origin"] = origin
+ h["Access-Control-Allow-Origin"] = origin # type: ignore
h["Access-Control-Allow-Methods"] = get_methods()
h["Access-Control-Max-Age"] = str(max_age)
if headers is not None: