g04_comment g04_comment ¶ Comment token. Comment ¶ Bases: Expression Comment token. Source code in src/pygerber/gerberx3/tokenizer/tokens/g04_comment.py 14 15 16 17 18 19 20 21 22 23 24 25 26class Comment(Expression): """Comment token.""" content: str @classmethod def from_tokens(cls, **tokens: Any) -> Self: """Initialize token object.""" content: str = tokens["string"] return cls(content=content) def __str__(self) -> str: return f"G04 {self.content}*" from_tokens classmethod ¶ from_tokens(**tokens: Any) -> Self Initialize token object. Source code in src/pygerber/gerberx3/tokenizer/tokens/g04_comment.py 19 20 21 22 23@classmethod def from_tokens(cls, **tokens: Any) -> Self: """Initialize token object.""" content: str = tokens["string"] return cls(content=content)