Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
List/tuple -> sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkarn committed Sep 13, 2022
1 parent 4ddf379 commit 43e6813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/combinat/integer_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

from sage.combinat.integer_lists import IntegerListsLex
from itertools import product
from collections.abc import Sequence
import numbers

from sage.structure.parent import Parent
Expand Down Expand Up @@ -696,7 +697,7 @@ def __contains__(self, x):
if isinstance(x, IntegerVector):
return True

if not isinstance(x, (list, tuple)):
if not isinstance(x, Sequence):
return False

for i in x:
Expand Down

0 comments on commit 43e6813

Please sign in to comment.