MCPcopy Create free account
hub / github.com/python/mypy / add_method

Method add_method

mypyc/irbuild/classdef.py:279–280  ·  view source on GitHub ↗
(self, fdef: FuncDef)

Source from the content-addressed store, hash-verified

277 return NonExtClassInfo(non_ext_dict, non_ext_bases, non_ext_anns, non_ext_metaclass)
278
279 def add_method(self, fdef: FuncDef) -> None:
280 handle_non_ext_method(self.builder, self.non_ext, self.cdef, fdef)
281
282 def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
283 add_non_ext_class_attr_ann(self.builder, self.non_ext, lvalue, stmt)

Callers 1

transform_class_defFunction · 0.95

Calls 1

handle_non_ext_methodFunction · 0.90

Tested by

no test coverage detected