Skip to content

Commit b52c277

Browse files
committed
chore: refactor
1 parent 63398e4 commit b52c277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypyc/irbuild/mapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def type_to_rtype(self, typ: Type | None) -> RType:
7676
if typ.type.is_newtype and len(typ.type.bases) == 1:
7777
# I'm pretty sure this length check always returns True but am not positive and False would break things
7878
# 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, []))
79+
return self.type_to_rtype(typ.type.bases[0])
8180
if typ.type.fullname == "builtins.int":
8281
return int_rprimitive
8382
elif typ.type.fullname == "builtins.float":

0 commit comments

Comments
 (0)