Skip to content

Commit a22b92f

Browse files
author
Attila Oláh
committed
Subclass list instead of typing.List.
This is temporary, until pylint-dev/pylint#3129 is resolved.
1 parent efc6bfd commit a22b92f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

poly/int_p.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
from poly.int_t import IntT
55

66

7-
class IntP(List[IntT]):
7+
# TODO: Subclass typing.List[IntT] when pylint supports this.
8+
# See https://github.com/PyCQA/pylint/issues/3129.
9+
class IntP(list):
810
"""A polynomial with int terms and coefficients.
911
1012
This type implements a sparse representation, i.e. only non-zero terms are

poly/int_t.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from typing import Iterable, List, Union
33

44

5-
class Ind(List[int]):
5+
# TODO: Subclass typing.List[int] when pylint supports this.
6+
# See https://github.com/PyCQA/pylint/issues/3129.
7+
class Ind(list):
68
"""Ind represents the indeterminates of a single term."""
79

810
def __init__(self, *args: int) -> None:

0 commit comments

Comments
 (0)