From 5993b816830f41fa83e32442a4ea896efeff2fa2 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 2 Jul 2016 00:10:49 +0100 Subject: [PATCH] rework docstring in mixins --- steam/client/mixins/__init__.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/steam/client/mixins/__init__.py b/steam/client/mixins/__init__.py index 225e74d..c2a22c1 100644 --- a/steam/client/mixins/__init__.py +++ b/steam/client/mixins/__init__.py @@ -9,12 +9,12 @@ Here is quick example of how to use one of the available mixins. .. code:: python from steam import SteamClient - from stema.client.mixins.friends import Friends + from stema.client.mixins.somemixing import SomeMixing - class MySteamClient(SteamClient, Friends): + class CustomSteamClient(SteamClient, SomeMixing): pass - client = MySteamClient() + client = CustomSteamClient() Making custom mixing is just as simple. @@ -35,10 +35,10 @@ Making custom mixing is just as simple. self.my_property = 42 def my_method(self) - pass + print "Hello!" - class MySteamClient(SteamClient, Friends, MyMixin): + class MySteamClient(SteamClient, MyMixin): pass client = MySteamClient() @@ -47,5 +47,7 @@ Making custom mixing is just as simple. >>> client.my_property 42 + >>> client.my_method() + Hello! """