uranusjr commented on code in PR #24399:
URL: https://github.com/apache/airflow/pull/24399#discussion_r903388349


##########
airflow/api_connexion/schemas/dag_schema.py:
##########
@@ -83,7 +83,8 @@ def get_owners(obj: DagModel):
     @staticmethod
     def get_token(obj: DagModel):
         """Return file token"""
-        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:
   We can use `get_mandatory_value` here.



-- 
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]

Reply via email to