1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-16 17:42:02 +00:00

trezorlib: fix client ctors for transport arg

This restores the API before PR #241, and makes sure that ctor signature doesn't
depend on mixin order.
(Mixins will be going away shortly anyway.)
This commit is contained in:
matejcik 2018-03-28 15:57:50 +02:00
parent bd3d014dd4
commit e79026cb4b

View File

@ -1106,12 +1106,15 @@ class ProtocolMixin(object):
class TrezorClient(ProtocolMixin, TextUIMixin, BaseClient):
pass
def __init__(self, transport, *args, **kwargs):
super().__init__(transport=transport, *args, **kwargs)
class TrezorClientVerbose(ProtocolMixin, TextUIMixin, VerboseWireMixin, BaseClient):
pass
def __init__(self, transport, *args, **kwargs):
super().__init__(transport=transport, *args, **kwargs)
class TrezorClientDebugLink(ProtocolMixin, DebugLinkMixin, VerboseWireMixin, BaseClient):
pass
def __init__(self, transport, *args, **kwargs):
super().__init__(transport=transport, *args, **kwargs)