mirror of https://github.com/astral-sh/ruff
oh hey that's a real bug
This commit is contained in:
parent
657685f731
commit
b84a35f22f
|
|
@ -622,7 +622,7 @@ class ClassWithNewAndInit:
|
|||
def __new__(cls, *args, **kwargs) -> Self:
|
||||
raise NotImplementedError
|
||||
|
||||
def __init__(self, x: int) -> None: ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
# revealed: ClassWithNewAndInit
|
||||
reveal_type(accepts_callable(ClassWithNewAndInit)())
|
||||
|
|
|
|||
Loading…
Reference in New Issue