Skip to content

Commit

Permalink
Fixing base transport signature for from_config()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcharnock committed May 29, 2019
1 parent 4ff4845 commit 899e9b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lightbus/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from lightbus.utilities.config import make_from_config_structure
from lightbus.utilities.importing import load_entrypoint_classes

if False:
# pylint: disable=unused-import
from lightbus.config import Config

T = TypeVar("T")
logger = logging.getLogger(__name__)

Expand All @@ -24,7 +28,7 @@ def __new__(mcs, name, bases, attrs, **kwds):

class Transport(object, metaclass=TransportMetaclass):
@classmethod
def from_config(cls: Type[T], *config) -> T:
def from_config(cls: Type[T], config: "Config") -> T:
return cls()

async def open(self):
Expand Down

0 comments on commit 899e9b5

Please sign in to comment.