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

Method no_formal_self

mypy/messages.py:1552–1556  ·  view source on GitHub ↗
(self, name: str, item: CallableType, context: Context)

Source from the content-addressed store, hash-verified

1550 self.fail(f'Cannot determine type of "{name}" in base class "{base}"', context)
1551
1552 def no_formal_self(self, name: str, item: CallableType, context: Context) -> None:
1553 type = format_type(item, self.options)
1554 self.fail(
1555 f'Attribute function "{name}" with type {type} does not accept self argument', context
1556 )
1557
1558 def incompatible_self_argument(
1559 self, name: str, arg: Type, sig: CallableType, is_classmethod: bool, context: Context

Callers 1

check_self_argFunction · 0.80

Calls 2

failMethod · 0.95
format_typeFunction · 0.85

Tested by

no test coverage detected