Bases: AbstractAnnotation
Source code in src/library_analyzer/processing/annotations/model/_annotations.py
| @dataclass
class GroupAnnotation(AbstractAnnotation):
groupName: str # noqa: N815
parameters: list[str]
@staticmethod
def from_dict(d: Any) -> GroupAnnotation:
annotation = AbstractAnnotation.from_dict(d)
return GroupAnnotation(
annotation.target,
annotation.authors,
annotation.reviewers,
annotation.comment,
annotation.reviewResult,
d["groupName"],
d["parameters"],
)
|
groupName: str
instance-attribute
parameters: list[str]
instance-attribute
__init__(target, authors, reviewers, comment, reviewResult, groupName, parameters)
from_dict(d)
staticmethod
Source code in src/library_analyzer/processing/annotations/model/_annotations.py
| @staticmethod
def from_dict(d: Any) -> GroupAnnotation:
annotation = AbstractAnnotation.from_dict(d)
return GroupAnnotation(
annotation.target,
annotation.authors,
annotation.reviewers,
annotation.comment,
annotation.reviewResult,
d["groupName"],
d["parameters"],
)
|