Skip to content

Commit c96f949

Browse files
Update rtypes.py
1 parent ac503a3 commit c96f949

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/ir/rtypes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ def __hash__(self) -> int:
493493
# Python range object.
494494
range_rprimitive: Final = RPrimitive("builtins.range", is_unboxed=False, is_refcounted=True)
495495

496+
# Python weak reference object
497+
weakref_rprimitive: Final = RPrimitive("weakref.ReferenceType", is_unboxed=False, is_refcounted=True)
498+
496499

497500
def is_tagged(rtype: RType) -> bool:
498501
return rtype is int_rprimitive or rtype is short_int_rprimitive

0 commit comments

Comments
 (0)