Skip to content

Commit 4e82ef4

Browse files
committed
expose core types from init
1 parent 38d25b8 commit 4e82ef4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/olink/core/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from .types import Name as Name
2+
from .types import LogLevel as LogLevel
3+
from .types import MsgType as MsgType
4+
from .types import Base as Base
5+
from .types import ILogger as ILogger
6+
from .node import BaseNode as BaseNode
7+
from .protocol import IProtocolListener as IProtocolListener
8+
from .protocol import Protocol as Protocol

src/olink/core/protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from typing import Any
2-
from typing import Protocol as ProptocolType
2+
from typing import Protocol as ProtocolType
33
from .types import Base, LogLevel, MsgType
44

55

6-
class IProtocolListener(ProptocolType):
6+
class IProtocolListener(ProtocolType):
77
# interface for protocol listeners
88
def handle_link(self, name: str) -> None:
99
# called when a link is created

0 commit comments

Comments
 (0)