<gh_stars>1-10
# -*- coding: utf-8 -*-

import ast
from typing import List, Union

from wemake_python_styleguide.types import AnyAssign


def get_assign_targets(
    node: Union[AnyAssign, ast.AugAssign],
) -> List[ast.expr]:
    """Returns list of assign targets without knowing the type of assign."""
    if isinstance(node, (ast.AnnAssign, ast.AugAssign)):
        return [node.target]
    return node.targets

# -*- coding: utf-8 -*-

import ast
from typing import List, Union

from wemake_python_styleguide.types import AnyAssign


def get_assign_targets(
    node: Union[AnyAssign, ast.AugAssign],
) -> List[ast.expr]:
    """Returns list of assign targets without knowing the type of assign."""
    if isinstance(node, (ast.AnnAssign, ast.AugAssign)):
        return [node.target]
    return node.targets
# -*- coding: utf-8 -*- Returns list of assign targets without knowing the type of assign.