Skip to content

Commit

Permalink
Allow type_to to be an object (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb authored Jan 17, 2025
1 parent 731b20d commit f7afa1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plum/promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _promotion_rule(type1, type2):


@_dispatch
def add_promotion_rule(type1: object, type2: object, type_to: type) -> None:
def add_promotion_rule(type1: object, type2: object, type_to: object) -> None:
"""Add a promotion rule.
Args:
Expand Down

0 comments on commit f7afa1e

Please sign in to comment.