uranusjr commented on code in PR #34260:
URL: https://github.com/apache/airflow/pull/34260#discussion_r1324244863
##########
airflow/providers/google/cloud/utils/field_validator.py:
##########
@@ -421,6 +421,8 @@ def validate(self, body_to_validate: dict) -> None:
:param body_to_validate: body that must follow the specification
:return: None
"""
+ if body_to_validate is None:
Review Comment:
The function’s type annotation should probably be updated to cover the None
case.
##########
airflow/providers/google/cloud/utils/field_validator.py:
##########
@@ -421,6 +421,8 @@ def validate(self, body_to_validate: dict) -> None:
:param body_to_validate: body that must follow the specification
:return: None
"""
+ if body_to_validate is None:
Review Comment:
The function’s type annotation should probably be updated to cover the None
case.
--
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]