Skip to content

Commit

Permalink
Update src/sage/combinat/integer_vector_weighted.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Köppe <mkoeppe@math.ucdavis.edu>
  • Loading branch information
fchapoton and Matthias Köppe authored Jun 29, 2024
1 parent ff96776 commit 08f0c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/combinat/integer_vector_weighted.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __contains__(self, x):
return False
s = 0
for i, xi in enumerate(x):
if (not isinstance(xi, (int, Integer))) and (xi not in ZZ):
if not isinstance(xi, (int, Integer)) and xi not in ZZ:
return False
s += xi * self._weights[i]
return s == self._n
Expand Down

0 comments on commit 08f0c91

Please sign in to comment.