Store message and selector in function attribute, return callable unaltered.
(method: DecoratedType)
| 82 | ) from None |
| 83 | |
| 84 | def decorator(method: DecoratedType) -> DecoratedType: |
| 85 | """Store message and selector in function attribute, return callable unaltered.""" |
| 86 | |
| 87 | if not hasattr(method, "_textual_on"): |
| 88 | setattr(method, "_textual_on", []) |
| 89 | getattr(method, "_textual_on").append((message_type, parsed_selectors)) |
| 90 | |
| 91 | return method |
| 92 | |
| 93 | return decorator |
nothing calls this directly
no test coverage detected
searching dependent graphs…