We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5d67d commit c00d967Copy full SHA for c00d967
mypyc/test-data/run-classes.test
@@ -472,8 +472,19 @@ class X:
472
def __init__(self, msg: str, **variables: int) -> None:
473
pass
474
[file driver.py]
475
+import traceback
476
from native import X
477
X('hello', a=0)
478
+try:
479
+ X('hello', msg='hello')
480
+except TypeError:
481
+ traceback.print_exc()
482
+[out]
483
+Traceback (most recent call last):
484
+ File "driver.py", line 5, in <module>
485
486
+ ~^^^^^^^^^^^^^^^^^^^^^^
487
+TypeError: argument for __init__() given by name ('msg') and position (1)
488
489
[case testGenericClass]
490
from typing import TypeVar, Generic, Sequence
0 commit comments