Add type annotionations to src/Timers.py and src/IRCBuffer.py
This commit is contained in:
parent
db1e2ea406
commit
8b135d8310
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ class Buffer(object):
|
|||
def __init__(self, bot: "IRCBot.Bot", server: "IRCServer.Server"):
|
||||
self.bot = bot
|
||||
self.server = server
|
||||
self.lines = []
|
||||
self.lines = [] # type: typing.List[BufferLine]
|
||||
self.max_lines = 64
|
||||
self._skip_next = False
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ class Timers(object):
|
|||
self.database = database
|
||||
self.events = events
|
||||
self.log = log
|
||||
self.timers = []
|
||||
self.context_timers = {}
|
||||
self.timers = [] # type: typing.List[Timer]
|
||||
self.context_timers = {} # type: typing.Dict[str, typing.List[Timer]]
|
||||
|
||||
def new_context(self, context: str) -> "TimersContext":
|
||||
return TimersContext(self, context)
|
||||
|
|
Loading…
Reference in a new issue