From dc5ef73edfbddda3bfb1bc53914bd77c34245f04 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 16:28:05 -0700 Subject: ignore type errors in cors.py (third party code) --- python/fatcat_web/cors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web') 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: -- cgit v1.2.3