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

Method transmogrify

Lib/annotationlib.py:673–681  ·  view source on GitHub ↗
(self, cell_dict)

Source from the content-addressed store, hash-verified

671 return fwdref
672
673 def transmogrify(self, cell_dict):
674 for obj in self.stringifiers:
675 obj.__class__ = ForwardRef
676 obj.__stringifier_dict__ = None # not needed for ForwardRef
677 if isinstance(obj.__ast_node__, str):
678 obj.__arg__ = obj.__ast_node__
679 obj.__ast_node__ = None
680 if cell_dict is not None and obj.__cell__ is None:
681 obj.__cell__ = cell_dict
682
683 def create_unique_name(self):
684 name = f"__annotationlib_name_{self.next_id}__"

Callers 2

evaluateMethod · 0.80
call_annotate_functionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected