diff --git a/poly/int_p.py b/poly/int_p.py index 519aae0..f08ecd0 100644 --- a/poly/int_p.py +++ b/poly/int_p.py @@ -4,7 +4,9 @@ from poly.int_t import IntT -class IntP(List[IntT]): +# TODO: Subclass typing.List[IntT] when pylint supports this. +# See https://github.com/PyCQA/pylint/issues/3129. +class IntP(list): """A polynomial with int terms and coefficients. This type implements a sparse representation, i.e. only non-zero terms are diff --git a/poly/int_t.py b/poly/int_t.py index 47758f3..f30a549 100644 --- a/poly/int_t.py +++ b/poly/int_t.py @@ -2,7 +2,9 @@ from typing import Iterable, List, Union -class Ind(List[int]): +# TODO: Subclass typing.List[int] when pylint supports this. +# See https://github.com/PyCQA/pylint/issues/3129. +class Ind(list): """Ind represents the indeterminates of a single term.""" def __init__(self, *args: int) -> None: