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

Method find_shadow_file_mapping

mypy/errors.py:1113–1121  ·  view source on GitHub ↗

Return the shadow file path for a given source file path or None.

(self, path: str)

Source from the content-addressed store, hash-verified

1111 return self.format_messages_default(error_tuples, source_lines)
1112
1113 def find_shadow_file_mapping(self, path: str) -> str | None:
1114 """Return the shadow file path for a given source file path or None."""
1115 if self.options.shadow_file is None:
1116 return None
1117
1118 for i in self.options.shadow_file:
1119 if i[0] == path:
1120 return i[1]
1121 return None
1122
1123 def new_messages(self) -> list[str]:
1124 """Return a string list of new error messages.

Callers 1

format_messagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected