MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / alert_type

Method alert_type

scratchattach/site/alert.py:191–199  ·  view source on GitHub ↗

Get an associated AlertType object for this alert (based on the type index)

(self)

Source from the content-addressed store, hash-verified

189
190 @property
191 def alert_type(self) -> enums.AlertType:
192 """
193 Get an associated AlertType object for this alert (based on the type index)
194 """
195 alert_type = enums.AlertTypes.find(self.type)
196 if not alert_type:
197 alert_type = enums.AlertTypes.default.value
198
199 return alert_type
200
201 @property
202 def message(self):

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected