Skip to content

Commit

Permalink
doc/development: update examples with cmp=False
Browse files Browse the repository at this point in the history
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  • Loading branch information
Emantor committed Aug 1, 2017
1 parent 2374337 commit d095e66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ provided by connecting drivers and resources on a given target at runtime.
from labgrid.driver.common import Driver
from labgrid.protocol import ConsoleProtocol

@attr.s
@attr.s(cmp=False)
class ExampleDriver(Driver, ConsoleProtocol):
pass

Expand All @@ -93,7 +93,7 @@ be added into multiple drivers.
from labgrid.driver.consoleexpectmixin import ConsoleExpectMixin
from labgrid.protocol import ConsoleProtocol

@attr.s
@attr.s(cmp=False)
class ExampleDriver(ConsoleExpectMixin, Driver, ConsoleProtocol)
pass

Expand All @@ -111,7 +111,7 @@ dependencies on other drivers or resources.
from labgrid.protocol import ConsoleProtocol

@target_factory.reg_driver
@attr.s
@attr.s(cmp=False)
class ExampleDriver(ConsoleExpectMixin, Driver, ConsoleProtocol)
bindings = { "port": SerialPort }
pass
Expand All @@ -136,7 +136,7 @@ The minimum requirement is a call to :code:`super().__attr_post_init__()`.
from labgrid.protocol import ConsoleProtocol

@target_factory.reg_driver
@attr.s
@attr.s(cmp=False)
class ExampleDriver(ConsoleExpectMixin, Driver, ConsoleProtocol)
bindings = { "port": SerialPort }

Expand Down Expand Up @@ -171,7 +171,7 @@ register it with the :any:`target_factory`.


@target_factory.reg_resource
@attr.s
@attr.s(cmp=False)
class ExampleResource(Resource):
pass

Expand All @@ -187,7 +187,7 @@ variables.


@target_factory.reg_resource
@attr.s
@attr.s(cmp=False)
class ExampleResource(Resource):
examplevar1 = attr.ib()
examplevar2 = attr.ib()
Expand Down

0 comments on commit d095e66

Please sign in to comment.