nuclearpinguin commented on a change in pull request #7495: [AIRFLOW-6873] fix
mypyd errors and add new type annotations
URL: https://github.com/apache/airflow/pull/7495#discussion_r383166652
##########
File path: airflow/utils/helpers.py
##########
@@ -56,7 +57,7 @@ def validate_key(k, max_length=250):
return True
-def alchemy_to_dict(obj):
+def alchemy_to_dict(obj) -> Optional[Dict]:
Review comment:
```suggestion
def alchemy_to_dict(obj: Any) -> Optional[Dict]:
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services