Show More
@@ -19,7 +19,6 b' import re' | |||||
19 | import textwrap |
|
19 | import textwrap | |
20 | import dataclasses |
|
20 | import dataclasses | |
21 | import logging |
|
21 | import logging | |
22 | import typing |
|
|||
23 |
|
22 | |||
24 | from mako.template import Template |
|
23 | from mako.template import Template | |
25 |
|
24 | |||
@@ -66,7 +65,7 b' class SlackDataHandler(CommitParsingData' | |||||
66 | def __init__(self): |
|
65 | def __init__(self): | |
67 | pass |
|
66 | pass | |
68 |
|
67 | |||
69 | def __call__(self, event: events.RhodecodeEvent, data): |
|
68 | def __call__(self, event: events.RhodecodeEvent, data) -> SlackData: | |
70 | if not isinstance(event, events.RhodecodeEvent): |
|
69 | if not isinstance(event, events.RhodecodeEvent): | |
71 | raise TypeError(f"event {event} is not subtype of events.RhodecodeEvent") |
|
70 | raise TypeError(f"event {event} is not subtype of events.RhodecodeEvent") | |
72 |
|
71 |
General Comments 0
You need to be logged in to leave comments.
Login now