potiuk commented on code in PR #24399:
URL: https://github.com/apache/airflow/pull/24399#discussion_r901528130
##########
tests/api_connexion/schemas/test_dag_schema.py:
##########
@@ -30,7 +30,8 @@
from airflow.configuration import conf
from airflow.models import DagModel, DagTag
-SERIALIZER = URLSafeSerializer(conf.get('webserver', 'SECRET_KEY'))
+# the secret key is always available, so we can ignore Optional here
+SERIALIZER = URLSafeSerializer(conf.get('webserver', 'secret_key')) # type:
ignore[arg-type]
Review Comment:
I actually went ahead and changed it. It's sooo much better than dealing
with the type ignores :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]