MCPcopy Create free account
hub / github.com/getsentry/sentry / _exit_input

Method _exit_input

tools/flake8_plugin.py:1077–1090  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1075 self.errors.append((line, col, msg))
1076
1077 def _exit_input(self) -> None:
1078 ctx = self._input_stack.pop()
1079 for line, col, name in ctx.query_validators:
1080 if name not in ctx.declared_params:
1081 self._report_input(line, col, S025_query_msg.format(name), "declared")
1082 for line, col, name in ctx.body_validators:
1083 if name not in ctx.declared_body:
1084 self._report_input(line, col, S025_body_msg.format(name), "declared")
1085 for line, col, key, source in ctx.literal_reads:
1086 self._report_input(line, col, S026_msg.format(repr(key), source), "shaped")
1087 for line, col, key, source in ctx.computed_reads:
1088 self._report_input(line, col, S027_msg.format(source, key), "shaped")
1089 for line, col, callee, source in ctx.hand_offs:
1090 self._report_input(line, col, S028_msg.format(source, callee), "shaped")
1091
1092 def visit_Call(self, node: ast.Call) -> None:
1093 self._s024_visit_call(node)

Callers 2

visit_FunctionDefMethod · 0.95

Calls 2

_report_inputMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected