You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/10/23 09:36:53 UTC
[airflow] branch v2-2-test updated: Remove incorrect type comment
in Swagger2Specification._set_defaults classmethod (#19065)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-2-test by this push:
new dd65bb1 Remove incorrect type comment in Swagger2Specification._set_defaults classmethod (#19065)
dd65bb1 is described below
commit dd65bb18b4365a94d37143538ab9f7e662cde1bc
Author: Vladimir Aranovsky <66...@users.noreply.github.com>
AuthorDate: Sat Oct 23 12:27:59 2021 +0300
Remove incorrect type comment in Swagger2Specification._set_defaults classmethod (#19065)
(cherry picked from commit 1fb4729a9d355bf64d41ceef649ed7d9fa070afb)
---
airflow/_vendor/connexion/spec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/_vendor/connexion/spec.py b/airflow/_vendor/connexion/spec.py
index e11530e..5ab7e0c 100644
--- a/airflow/_vendor/connexion/spec.py
+++ b/airflow/_vendor/connexion/spec.py
@@ -166,7 +166,7 @@ class Swagger2Specification(Specification):
@classmethod
def _set_defaults(cls, spec):
spec.setdefault('produces', [])
- spec.setdefault('consumes', ['application/json']) # type: List[str]
+ spec.setdefault('consumes', ['application/json'])
spec.setdefault('definitions', {})
spec.setdefault('parameters', {})
spec.setdefault('responses', {})