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.
NewType
1 parent ef75648 commit 95067d1Copy full SHA for 95067d1
conformance/tests/aliases_newtype.py
@@ -14,6 +14,9 @@
14
15
assert_type(UserId(5) + 1, int)
16
17
+# > NewType('Derived', Base) returns a dummy function
18
+_: type = UserId # E: functions are not instances of `type`
19
+
20
# > Both isinstance and issubclass, as well as subclassing will fail for
21
# > NewType('Derived', Base) since function objects don’t support these
22
# > operations.
0 commit comments