mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Fix a few flake8 issues
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user