blob: 241e0008a16f363f8defdd36b1180cc49a8b990c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"""Tests for super-init-not-called."""
# pylint: disable=too-few-public-methods
from typing_extensions import Protocol as ExtensionProtocol
class TestProto(ExtensionProtocol):
"""A protocol without __init__ using Protocol from typing_extensions."""
class TestParent(TestProto):
"""An implementation."""
def __init__(self):
...
class TestChild(TestParent):
"""An implementation which should call the init of TestParent."""
def __init__(self): # [super-init-not-called]
...
|