Skip to content

ParameterIsIllegal

Bases: Action

Source code in src/library_analyzer/processing/api/_extract_dependencies.py
class ParameterIsIllegal(Action):
    def __init__(self, action_: str) -> None:
        super().__init__(action_)

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

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

__init__(action_)

Source code in src/library_analyzer/processing/api/_extract_dependencies.py
def __init__(self, action_: str) -> None:
    super().__init__(action_)

from_dict(d) classmethod

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

to_dict()

Source code in src/library_analyzer/processing/api/_extract_dependencies.py
def to_dict(self) -> dict[str, Any]:
    return {"variant": Action.Variant.IS_ILLEGAL.value, "action": self.action}