Lee-W commented on code in PR #69311:
URL: https://github.com/apache/airflow/pull/69311#discussion_r3519095837


##########
task-sdk/src/airflow/sdk/definitions/partition_mappers/fixed_key.py:
##########
@@ -44,7 +44,7 @@ class FixedKeyMapper(PartitionMapper):
 
     @downstream_key.validator
     def _validate_downstream_key(self, attribute: attrs.Attribute, value: str) 
-> None:
-        if not isinstance(value, str) or value == "":
+        if not value or not isinstance(value, str):

Review Comment:
   Suggested by TP above. no harm to keep it consistent



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