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

Method readonly_keys_mutated

mypy/messages.py:907–916  ·  view source on GitHub ↗
(self, keys: set[str], context: Context)

Source from the content-addressed store, hash-verified

905 )
906
907 def readonly_keys_mutated(self, keys: set[str], context: Context) -> None:
908 if len(keys) == 1:
909 suffix = "is"
910 else:
911 suffix = "are"
912 self.fail(
913 "ReadOnly {} TypedDict {} mutated".format(format_key_list(sorted(keys)), suffix),
914 code=codes.TYPEDDICT_READONLY_MUTATED,
915 context=context,
916 )
917
918 def too_few_arguments(
919 self, callee: CallableType, context: Context, argument_names: Sequence[str | None] | None

Calls 5

failMethod · 0.95
lenFunction · 0.85
format_key_listFunction · 0.85
sortedFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected