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

Method ctype_spaced

mypyc/codegen/emit.py:364–370  ·  view source on GitHub ↗

Adds a space after ctype for non-pointers.

(self, rtype: RType)

Source from the content-addressed store, hash-verified

362 return rtype._ctype
363
364 def ctype_spaced(self, rtype: RType) -> str:
365 """Adds a space after ctype for non-pointers."""
366 ctype = self.ctype(rtype)
367 if ctype[-1] == "*":
368 return ctype
369 else:
370 return ctype + " "
371
372 def set_undefined_value(self, target: str, rtype: RType) -> None:
373 if isinstance(rtype, RVec):

Callers 14

tuple_c_declarationMethod · 0.95
generate_hash_wrapperFunction · 0.80
generate_len_wrapperFunction · 0.80
generate_bool_wrapperFunction · 0.80
emit_callMethod · 0.80
declare_finalsMethod · 0.80
final_definitionMethod · 0.80
generate_object_structFunction · 0.80
generate_readonly_getterFunction · 0.80
native_function_headerFunction · 0.80

Calls 1

ctypeMethod · 0.95

Tested by

no test coverage detected