Merge remote-tracking branch 'origin' into support-dataclass-transform

* origin:
  Fix pip install -e in docs
  Upgrade Mypy
  Fix a few flake8 issues
  Upgrade flake8
  Upgrade other test runners
  Remove 3.6/3.7 references and change tests slightly
  Upgrade OS's that it is tested on
  Try to add something to the README
This commit is contained in:
Eric Masseran
2025-08-28 10:33:17 +02:00
17 changed files with 39 additions and 37 deletions

View File

@@ -16,13 +16,13 @@ def test_on_code():
assert i.infer()
def test_generics_without_definition():
def test_generics_without_definition() -> None:
# Used to raise a recursion error
T = TypeVar('T')
class Stack(Generic[T]):
def __init__(self):
self.items = [] # type: List[T]
def __init__(self) -> None:
self.items: List[T] = []
def push(self, item):
self.items.append(item)