CodeQL library for Python
Search

Member predicate ControlFlowNode::isDefinition

Use NameNode.isStore()

predicate isDefinition()