Warning Message¤
WarningMessage
dataclass
¤
WarningMessage(
when: When,
node_id: str,
location: Location,
message: str,
event: str = "warning_message",
category: str | None = None,
)
A warning message.
Attributes:
Name | Type | Description |
---|---|---|
category |
str | None
|
The category of the warning message. |
event |
str
|
The event type. Always 'warning_message'. |
location |
Location
|
The location of the warning message. |
message |
str
|
The string content of the warning message. |
node_id |
str
|
The node ID of the node where the warning message is emitted. |
when |
When
|
When the warning message is emitted. |
category
class-attribute
instance-attribute
¤
category: str | None = None
The category of the warning message.
event
class-attribute
instance-attribute
¤
event: str = 'warning_message'
The event type. Always 'warning_message'.