diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:28:05 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:52:44 -0700 |
commit | dc5ef73edfbddda3bfb1bc53914bd77c34245f04 (patch) | |
tree | b3ba0a2eefc8e7b5e0c99ce5660707f3181d16fd | |
parent | 7bf6db7237345c678a890ebbf500392d5d0ad505 (diff) | |
download | fatcat-dc5ef73edfbddda3bfb1bc53914bd77c34245f04.tar.gz fatcat-dc5ef73edfbddda3bfb1bc53914bd77c34245f04.zip |
ignore type errors in cors.py (third party code)
-rw-r--r-- | python/fatcat_web/cors.py | 4 |
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: |