summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puzzles/xtra_new_and_init_mismatch.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/puzzles/xtra_new_and_init_mismatch.py b/puzzles/xtra_new_and_init_mismatch.py
new file mode 100644
index 0000000..63debc0
--- /dev/null
+++ b/puzzles/xtra_new_and_init_mismatch.py
@@ -0,0 +1,6 @@
+class Foo:
+ def __new__(cls, a: int) -> 'Foo':
+ raise NotImplementedError()
+
+ def __init__(self, a: str): # error
+ pass