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 ac503a3 commit c96f949Copy full SHA for c96f949
mypyc/ir/rtypes.py
@@ -493,6 +493,9 @@ def __hash__(self) -> int:
493
# Python range object.
494
range_rprimitive: Final = RPrimitive("builtins.range", is_unboxed=False, is_refcounted=True)
495
496
+# Python weak reference object
497
+weakref_rprimitive: Final = RPrimitive("weakref.ReferenceType", is_unboxed=False, is_refcounted=True)
498
+
499
500
def is_tagged(rtype: RType) -> bool:
501
return rtype is int_rprimitive or rtype is short_int_rprimitive
0 commit comments