"""Parametrize tasks."""
from _pytask.config import hookimpl
from _pytask.mark import MARK_GEN as mark  # noqa: N811


@hookimpl
def pytask_parametrize_kwarg_to_marker(obj, kwargs):
    """Attach parametrized stata arguments to the function with a marker."""
    if callable(obj):
        if "stata" in kwargs:
            mark.stata(kwargs.pop("stata"))(obj)

"""Parametrize tasks."""
from _pytask.config import hookimpl
from _pytask.mark import MARK_GEN as mark  # noqa: N811


@hookimpl
def pytask_parametrize_kwarg_to_marker(obj, kwargs):
    """Attach parametrized stata arguments to the function with a marker."""
    if callable(obj):
        if "stata" in kwargs:
            mark.stata(kwargs.pop("stata"))(obj)

Parametrize tasks. # noqa: N811 Attach parametrized stata arguments to the function with a marker.