Source code for ska_oso_pdm._shared.python_arguments
from pydantic import Field
from .pdm_object import PdmObject
[docs]
class PythonArguments(PdmObject):
"""Represents the arguments for a Python callable."""
args: list = Field(default_factory=list)
kwargs: dict = Field(default_factory=dict)
# Do we need this? FunctionArgs seems redundant. ~bjmc 2024-02-20
[docs]
class FunctionArgs(PdmObject):
"""Represents a Python function & its arguments"""
function_name: str | None = None
function_args: PythonArguments | None = None