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.
type(NotImplemented)() is not NotImplemented
1 parent bcb7d9e commit 511e0f2Copy full SHA for 511e0f2
Objects/notimplementedobject.nim
@@ -1,7 +1,8 @@
1
import ./pyobject
2
import ./stringobject
3
+import ./exceptions
4
-declarePyType NotImplemented(tpToken):
5
+declarePyType NotImplemented():
6
discard
7
8
let pyNotImplemented* = newPyNotImplementedSimple() ## singleton
@@ -16,3 +17,5 @@ method `$`*(self: PyNotImplementedObject): string =
16
17
implNotImplementedMagic repr:
18
newPyString self.dollar
19
20
+implNotImplementedMagic New(tp: PyObject):
21
+ return pyNotImplemented
0 commit comments