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 63398e4 commit b52c277Copy full SHA for b52c277
mypyc/irbuild/mapper.py
@@ -76,8 +76,7 @@ def type_to_rtype(self, typ: Type | None) -> RType:
76
if typ.type.is_newtype and len(typ.type.bases) == 1:
77
# I'm pretty sure this length check always returns True but am not positive and False would break things
78
# Unwrap NewType to its base type for rprimitive mapping
79
- base_typeinfo = typ.type.bases[0].type
80
- return self.type_to_rtype(Instance(base_typeinfo, []))
+ return self.type_to_rtype(typ.type.bases[0])
81
if typ.type.fullname == "builtins.int":
82
return int_rprimitive
83
elif typ.type.fullname == "builtins.float":
0 commit comments