add interface for code units that need an IServer context

This commit is contained in:
jesopo 2020-04-02 17:55:50 +01:00
parent b46cecf420
commit 023107385e
1 changed files with 6 additions and 0 deletions

6
ircrobots/contexts.py Normal file
View File

@ -0,0 +1,6 @@
from dataclasses import dataclass
from .interface import IServer
@dataclass
class ServerContext(object):
server: IServer