Skip to content

Commit

Permalink
Fix weight_rule property type in mappedoperator (apache#35257)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala authored Oct 31, 2023
1 parent ff30dcc commit 6276c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/mappedoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def priority_weight(self) -> int: # type: ignore[override]
return self.partial_kwargs.get("priority_weight", DEFAULT_PRIORITY_WEIGHT)

@property
def weight_rule(self) -> int: # type: ignore[override]
def weight_rule(self) -> str: # type: ignore[override]
return self.partial_kwargs.get("weight_rule", DEFAULT_WEIGHT_RULE)

@property
Expand Down

0 comments on commit 6276c40

Please sign in to comment.