code: def _iter_assignment_targets(
      func: ast.FunctionDef,
  ) -> typing.Iterator[str]:
      for stmt in func.body:
          if isinstance(stmt, ast.AnnAssign):
              yield from _iter_assignment_to_self_attributes(
                  [stmt.target]
              )
          elif isinstance(stmt, ast.Assign):
              yield from _iter_assignment_to_self_attributes(
                  stmt.targets
              )
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_base_operator_partial_arguments.py
imports: from __future__ import annotations
  import ast
  import itertools
  import pathlib
  import sys
  import typing
label_desc: Use image node_id 5 for calling a global function with example usage: _iter_assignment_targets(func) without return types