MCPcopy Index your code
hub / github.com/python/cpython / __forward_code__

Method __forward_code__

Lib/annotationlib.py:262–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260
261 @property
262 def __forward_code__(self):
263 if self.__code__ is not None:
264 return self.__code__
265 arg = self.__forward_arg__
266 try:
267 self.__code__ = compile(_rewrite_star_unpack(arg), "<string>", "eval")
268 except SyntaxError:
269 raise SyntaxError(f"Forward reference must be an expression -- got {arg!r}")
270 return self.__code__
271
272 def __eq__(self, other):
273 if not isinstance(other, ForwardRef):

Callers

nothing calls this directly

Calls 2

_rewrite_star_unpackFunction · 0.85
compileFunction · 0.70

Tested by

no test coverage detected