Skip to content

Commit be91cbb

Browse files
committed
Updated pr.
1 parent ca9c601 commit be91cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ads/jobs/builders/infrastructure/dataflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,9 @@ def with_defined_tag(self, **kwargs) -> "DataFlow":
803803
return self.set_spec(self.CONST_DEFINED_TAGS, kwargs)
804804

805805
def __getattr__(self, item):
806-
if item == (self.CONST_DEFINED_TAGS or self.CONST_FREEFORM_TAGS):
806+
if item == self.CONST_DEFINED_TAGS or item == self.CONST_FREEFORM_TAGS:
807807
return self.get_spec(item)
808-
elif f"with_{item}" in self.__dir__() and item != ("defined_tag" or "freeform_tag"):
808+
elif f"with_{item}" in self.__dir__() and item != "defined_tag" and item != "freeform_tag":
809809
return self.get_spec(item)
810810
raise AttributeError(f"Attribute {item} not found.")
811811

0 commit comments

Comments
 (0)