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

Method note_call

mypy/messages.py:2129–2139  ·  view source on GitHub ↗
(
        self, subtype: Type, call: Type, context: Context, *, code: ErrorCode | None
    )

Source from the content-addressed store, hash-verified

2127 self.note(f'Protocol "{tp.name}" has non-method member(s): {attrs}', context)
2128
2129 def note_call(
2130 self, subtype: Type, call: Type, context: Context, *, code: ErrorCode | None
2131 ) -> None:
2132 self.note(
2133 '"{}.__call__" has type {}'.format(
2134 format_type_bare(subtype, self.options),
2135 format_type(call, self.options, verbosity=1),
2136 ),
2137 context,
2138 code=code,
2139 )
2140
2141 def unreachable_statement(self, context: Context) -> None:
2142 self.fail("Statement is unreachable", context, code=codes.UNREACHABLE)

Callers 2

check_subtypeMethod · 0.80

Calls 4

noteMethod · 0.95
format_type_bareFunction · 0.85
format_typeFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected