; Python import extraction queries
; Captures: @node (import statement), @source (module path)

; import foo / import foo.bar
(import_statement
  name: (dotted_name) @source) @node

; from foo import bar
(import_from_statement
  module_name: (dotted_name) @source) @node

; from . import foo (relative import)
(import_from_statement
  module_name: (relative_import) @source) @node
