Skip to content

Commit

Permalink
Wrapper docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Jan 16, 2021
1 parent b406709 commit 61a4f7a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions simple_rpc/simple_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,8 @@ def is_open(self):

class Interface(object):
"""Generic simpleRPC interface wrapper."""
@wraps(_Interface.__init__)
def __new__(cls, device, *args, **kwargs):
"""
:arg str device: Device name.
:arg list *args: Interface positional arguments.
:arg list **kwargs: Interface keyword arguments.
:returns object: simpleRPC interface.
"""
if device.startswith('socket'):
return SocketInterface(device, *args, **kwargs)
return SerialInterface(device, *args, **kwargs)

0 comments on commit 61a4f7a

Please sign in to comment.