blob: 458707da0a32d58bb8130f71597d42a03eb21f84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
"""Tests for super-init-not-called with Protocol."""
# pylint: disable=too-few-public-methods
from abc import abstractmethod
from typing import Protocol
class MyProtocol(Protocol):
"""A protocol."""
@abstractmethod
def __init__(self) -> None:
raise NotImplementedError
class ProtocolImplimentation(MyProtocol):
"""An implementation."""
def __init__(self) -> None:
...
|