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

Method visit_Subscript

tools/flake8_plugin.py:1006–1014  ·  view source on GitHub ↗
(self, node: ast.Subscript)

Source from the content-addressed store, hash-verified

1004 self._s024_parses = (node.lineno, node.col_offset)
1005
1006 def visit_Subscript(self, node: ast.Subscript) -> None:
1007 # Load only: `request.data["title"] = ...` writes a value, it does not
1008 # read a parameter the client sent.
1009 if self._input_stack and isinstance(node.ctx, ast.Load):
1010 ctx = self._input_stack[-1]
1011 source = ctx.source_of(node.value)
1012 if source is not None:
1013 ctx.record_read(node.slice, source, node.lineno, node.col_offset)
1014 self.generic_visit(node)
1015
1016 def _enter_input(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> bool:
1017 """Push an accumulator for a PUBLIC HTTP method on an endpoint class."""

Callers

nothing calls this directly

Calls 3

source_ofMethod · 0.80
record_readMethod · 0.80
generic_visitMethod · 0.45

Tested by

no test coverage detected