Skip to content

Action

Source code in src/library_analyzer/processing/dependencies/_parameter_dependencies.py
@dataclass
class Action:
    action: str

    @classmethod
    def from_dict(cls, d: dict[str, Any]) -> Action:
        return cls(d["action"])

    def to_dict(self) -> dict[str, Any]:
        return {"action": self.action}

action: str instance-attribute

__init__(action)

from_dict(d) classmethod

Source code in src/library_analyzer/processing/dependencies/_parameter_dependencies.py
@classmethod
def from_dict(cls, d: dict[str, Any]) -> Action:
    return cls(d["action"])

to_dict()

Source code in src/library_analyzer/processing/dependencies/_parameter_dependencies.py
def to_dict(self) -> dict[str, Any]:
    return {"action": self.action}