MCPcopy Index your code
hub / github.com/python/mypy / RVoid

Class RVoid

mypyc/ir/rtypes.py:185–210  ·  view source on GitHub ↗

The void type (no value). This is a singleton -- use void_rtype (below) to refer to this instead of constructing a new instance.

Source from the content-addressed store, hash-verified

183
184@final
185class RVoid(RType):
186 """The void type (no value).
187
188 This is a singleton -- use void_rtype (below) to refer to this instead of
189 constructing a new instance.
190 """
191
192 is_unboxed = False
193 name = "void"
194 ctype = "void"
195
196 def accept(self, visitor: RTypeVisitor[T]) -> T:
197 return visitor.visit_rvoid(self)
198
199 @property
200 def may_be_immortal(self) -> bool:
201 return False
202
203 def serialize(self) -> str:
204 return "void"
205
206 def __eq__(self, other: object) -> TypeGuard[RVoid]:
207 return isinstance(other, RVoid)
208
209 def __hash__(self) -> int:
210 return hash(RVoid)
211
212
213# Singleton instance of RVoid

Callers 2

deserialize_typeFunction · 0.85
rtypes.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…