add interface for code units that need an IServer context
This commit is contained in:
parent
b46cecf420
commit
023107385e
1 changed files with 6 additions and 0 deletions
6
ircrobots/contexts.py
Normal file
6
ircrobots/contexts.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from dataclasses import dataclass
|
||||||
|
from .interface import IServer
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class ServerContext(object):
|
||||||
|
server: IServer
|
Loading…
Add table
Add a link
Reference in a new issue