Skip to content

TodoAnnotation

Bases: AbstractAnnotation

Source code in src/library_analyzer/processing/annotations/model/_annotations.py
@dataclass
class TodoAnnotation(AbstractAnnotation):
    newTodo: str  # noqa: N815

    @staticmethod
    def from_dict(d: Any) -> TodoAnnotation:
        annotation = AbstractAnnotation.from_dict(d)
        return TodoAnnotation(
            annotation.target,
            annotation.authors,
            annotation.reviewers,
            annotation.comment,
            annotation.reviewResult,
            d["newTodo"],
        )

newTodo: str instance-attribute

__init__(target, authors, reviewers, comment, reviewResult, newTodo)

from_dict(d) staticmethod

Source code in src/library_analyzer/processing/annotations/model/_annotations.py
@staticmethod
def from_dict(d: Any) -> TodoAnnotation:
    annotation = AbstractAnnotation.from_dict(d)
    return TodoAnnotation(
        annotation.target,
        annotation.authors,
        annotation.reviewers,
        annotation.comment,
        annotation.reviewResult,
        d["newTodo"],
    )