Fix a few flake8 issues

This commit is contained in:
Dave Halter committed 2025-06-16 16:41:36 +02:00
1 parent 13063221f2
commit 7c27da8d68
2 files changed
+4 -4

No files matched your search

+3 -3
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)