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

Method is_query

tools/flake8_plugin.py:653–654  ·  view source on GitHub ↗
(self, node: ast.expr)

Source from the content-addressed store, hash-verified

651 return isinstance(node, ast.Attribute) and node.attr in attrs and _is_request(node.value)
652
653 def is_query(self, node: ast.expr) -> bool:
654 return self._is(node, _QUERY_ATTRS, self.query_locals)
655
656 def is_body(self, node: ast.expr) -> bool:
657 return self._is(node, frozenset(("data",)), self.body_locals)

Callers 3

source_ofMethod · 0.95
visit_AssignMethod · 0.80
_record_validatorMethod · 0.80

Calls 1

_isMethod · 0.95

Tested by

no test coverage detected