@@ -47,7 +47,7 @@ class Foo: ...
47
47
48
48
reveal_type(Foo()) # revealed: Foo
49
49
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 "
51
51
reveal_type(Foo(1 )) # revealed: Foo
52
52
```
53
53
@@ -62,7 +62,7 @@ reveal_type(Foo(1)) # revealed: Foo
62
62
63
63
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
64
64
reveal_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 "
66
66
reveal_type(Foo(1 , 2 )) # revealed: Foo
67
67
```
68
68
@@ -84,7 +84,7 @@ reveal_type(Foo(1)) # revealed: Foo
84
84
85
85
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
86
86
reveal_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 "
88
88
reveal_type(Foo(1 , 2 )) # revealed: Foo
89
89
```
90
90
@@ -105,7 +105,7 @@ def _(flag: bool) -> None:
105
105
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
106
106
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
107
107
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 "
109
109
reveal_type(Foo(1 , 2 )) # revealed: Foo
110
110
```
111
111
@@ -198,7 +198,7 @@ reveal_type(Foo(1)) # revealed: Foo
198
198
199
199
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
200
200
reveal_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 "
202
202
reveal_type(Foo(1 , 2 )) # revealed: Foo
203
203
```
204
204
@@ -217,7 +217,7 @@ reveal_type(Foo(1)) # revealed: Foo
217
217
218
218
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
219
219
reveal_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 "
221
221
reveal_type(Foo(1 , 2 )) # revealed: Foo
222
222
```
223
223
@@ -238,7 +238,7 @@ def _(flag: bool) -> None:
238
238
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
239
239
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
240
240
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 "
242
242
reveal_type(Foo(1 , 2 )) # revealed: Foo
243
243
```
244
244
@@ -344,7 +344,7 @@ class Foo:
344
344
reveal_type(Foo()) # revealed: Foo
345
345
reveal_type(Foo(1 )) # revealed: Foo
346
346
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 "
348
348
reveal_type(Foo(1 , 2 )) # revealed: Foo
349
349
```
350
350
@@ -363,7 +363,7 @@ class Foo:
363
363
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
364
364
reveal_type(Foo()) # revealed: Foo
365
365
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 "
367
367
reveal_type(Foo(42 )) # revealed: Foo
368
368
369
369
class Foo2 :
@@ -376,7 +376,7 @@ class Foo2:
376
376
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
377
377
reveal_type(Foo2()) # revealed: Foo2
378
378
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 "
380
380
reveal_type(Foo2(42 )) # revealed: Foo2
381
381
382
382
class Foo3 (metaclass = abc .ABCMeta ):
@@ -389,7 +389,7 @@ class Foo3(metaclass=abc.ABCMeta):
389
389
# error: [missing-argument] "No argument provided for required parameter `x` of bound method `__init__`"
390
390
reveal_type(Foo3()) # revealed: Foo3
391
391
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 "
393
393
reveal_type(Foo3(42 )) # revealed: Foo3
394
394
395
395
class Foo4 (metaclass = abc .ABCMeta ):
@@ -402,7 +402,7 @@ class Foo4(metaclass=abc.ABCMeta):
402
402
# error: [missing-argument] "No argument provided for required parameter `x` of function `__new__`"
403
403
reveal_type(Foo4()) # revealed: Foo4
404
404
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 "
406
406
reveal_type(Foo4(42 )) # revealed: Foo4
407
407
```
408
408
0 commit comments