Skip to content

Commit

Permalink
fix plum compatibility issue caused by 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yzjin authored and pabloferz committed Jul 24, 2024
1 parent beebd98 commit 101d72a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysages/utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def dispatch_table(dispatch):
def has_method(fn, T, index):
types_at_index = set()
for sig in fn.methods:
typ = sig.types[index]
if _plum_version_tuple < (2, 3, 0):
typ = sig.types[index]
else:
typ = sig.signature.types[index]
if _util.get_origin(typ) is _typing.Union:
types_at_index.update(_util.get_args(typ))
else:
Expand Down

0 comments on commit 101d72a

Please sign in to comment.