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

Method read_only_property

mypy/messages.py:1668–1669  ·  view source on GitHub ↗
(self, name: str, type: TypeInfo, context: Context)

Source from the content-addressed store, hash-verified

1666 self.fail("Final name must be initialized with a value", ctx)
1667
1668 def read_only_property(self, name: str, type: TypeInfo, context: Context) -> None:
1669 self.fail(f'Property "{name}" defined in "{type.name}" is read-only', context)
1670
1671 def incompatible_typevar_value(
1672 self, callee: CallableType, typ: Type, typevar_name: str, context: Context

Callers 1

analyze_varFunction · 0.80

Calls 1

failMethod · 0.95

Tested by

no test coverage detected