typing: added typehint
This commit is contained in:
parent
c8b35a769a
commit
86c35d3d9b
1 changed files with 1 additions and 2 deletions
|
|
@ -19,7 +19,6 @@ import re
|
|||
import textwrap
|
||||
import dataclasses
|
||||
import logging
|
||||
import typing
|
||||
|
||||
from mako.template import Template
|
||||
|
||||
|
|
@ -66,7 +65,7 @@ class SlackDataHandler(CommitParsingDataHandler):
|
|||
def __init__(self):
|
||||
pass
|
||||
|
||||
def __call__(self, event: events.RhodecodeEvent, data):
|
||||
def __call__(self, event: events.RhodecodeEvent, data) -> SlackData:
|
||||
if not isinstance(event, events.RhodecodeEvent):
|
||||
raise TypeError(f"event {event} is not subtype of events.RhodecodeEvent")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue