From be0d49f4744d53ea127de2b0d3600a411496e6b0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 5 Aug 2020 01:58:20 +0200 Subject: [PATCH] Add a few type annotations --- royalnet/commands/heraldevent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/royalnet/commands/heraldevent.py b/royalnet/commands/heraldevent.py index 04e63454..504f3568 100644 --- a/royalnet/commands/heraldevent.py +++ b/royalnet/commands/heraldevent.py @@ -11,8 +11,8 @@ class HeraldEvent: name = NotImplemented """The event_name that will trigger this event.""" - def __init__(self, serf, config): - self.serf = serf + def __init__(self, serf: "Serf", config): + self.serf: "Serf" = serf self.config = config @property