@@ -47,7 +47,7 @@ class Foo: ...
4747
4848reveal_type(Foo()) # revealed: Foo
4949
50- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 0 , got 1 "
50+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
5151reveal_type(Foo(1 )) # revealed: Foo
5252```
5353
@@ -62,7 +62,7 @@ reveal_type(Foo(1)) # revealed: Foo
6262
6363# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
6464reveal_type(Foo()) # revealed: Foo
65- # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 1 , got 2 "
65+ # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 2 , got 3 "
6666reveal_type(Foo(1 , 2 )) # revealed: Foo
6767```
6868
@@ -84,7 +84,7 @@ reveal_type(Foo(1)) # revealed: Foo
8484
8585# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
8686reveal_type(Foo()) # revealed: Foo
87- # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 1 , got 2 "
87+ # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 2 , got 3 "
8888reveal_type(Foo(1 , 2 )) # revealed: Foo
8989```
9090
@@ -105,7 +105,7 @@ def _(flag: bool) -> None:
105105 # error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
106106 # error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
107107 reveal_type(Foo()) # revealed: Foo
108- # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 1 , got 2 "
108+ # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 2 , got 3 "
109109 reveal_type(Foo(1 , 2 )) # revealed: Foo
110110```
111111
@@ -198,7 +198,7 @@ reveal_type(Foo(1)) # revealed: Foo
198198
199199# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
200200reveal_type(Foo()) # revealed: Foo
201- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
201+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 2 , got 3 "
202202reveal_type(Foo(1 , 2 )) # revealed: Foo
203203```
204204
@@ -217,7 +217,7 @@ reveal_type(Foo(1)) # revealed: Foo
217217
218218# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
219219reveal_type(Foo()) # revealed: Foo
220- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
220+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 2 , got 3 "
221221reveal_type(Foo(1 , 2 )) # revealed: Foo
222222```
223223
@@ -238,7 +238,7 @@ def _(flag: bool) -> None:
238238 # error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
239239 # error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
240240 reveal_type(Foo()) # revealed: Foo
241- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
241+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 2 , got 3 "
242242 reveal_type(Foo(1 , 2 )) # revealed: Foo
243243```
244244
@@ -344,7 +344,7 @@ class Foo:
344344reveal_type(Foo()) # revealed: Foo
345345reveal_type(Foo(1 )) # revealed: Foo
346346
347- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
347+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 2 , got 3 "
348348reveal_type(Foo(1 , 2 )) # revealed: Foo
349349```
350350
@@ -363,7 +363,7 @@ class Foo:
363363# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
364364reveal_type(Foo()) # revealed: Foo
365365
366- # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 0 , got 1 "
366+ # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 1 , got 2 "
367367reveal_type(Foo(42 )) # revealed: Foo
368368
369369class Foo2 :
@@ -376,7 +376,7 @@ class Foo2:
376376# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
377377reveal_type(Foo2()) # revealed: Foo2
378378
379- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 0 , got 1 "
379+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
380380reveal_type(Foo2(42 )) # revealed: Foo2
381381
382382class Foo3 (metaclass = abc .ABCMeta ):
@@ -389,7 +389,7 @@ class Foo3(metaclass=abc.ABCMeta):
389389# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
390390reveal_type(Foo3()) # revealed: Foo3
391391
392- # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 0 , got 1 "
392+ # error: [too-many-positional-arguments] "Too many positional arguments to function `__new__`: expected 1 , got 2 "
393393reveal_type(Foo3(42 )) # revealed: Foo3
394394
395395class Foo4 (metaclass = abc .ABCMeta ):
@@ -402,7 +402,7 @@ class Foo4(metaclass=abc.ABCMeta):
402402# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
403403reveal_type(Foo4()) # revealed: Foo4
404404
405- # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 0 , got 1 "
405+ # error: [too-many-positional-arguments] "Too many positional arguments to bound method `__init__`: expected 1 , got 2 "
406406reveal_type(Foo4(42 )) # revealed: Foo4
407407```
408408
0 commit comments