From d7f852dde31003edd6ca7efdc6ac87bcc62a6764 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 18 Apr 2020 16:28:20 +0100 Subject: [PATCH] SteamUser: show relationship in repr --- steam/client/user.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/steam/client/user.py b/steam/client/user.py index cc576f4..d504c8f 100644 --- a/steam/client/user.py +++ b/steam/client/user.py @@ -7,7 +7,11 @@ from steam.enums.emsg import EMsg from steam.core.msg import MsgProto class SteamUser(object): - """Holds various functionality and data related to a steam user + """ + A data model for a Steam user. Holds user persona state, and related actions + + .. note:: + This is an internal object that can be obtained by :meth:`SteamClient.get_user` """ _pstate = None steam_id = SteamID() #: steam id @@ -19,9 +23,10 @@ class SteamUser(object): self.steam_id = SteamID(steam_id) def __repr__(self): - return "<%s(%s, %s)>" % ( + return "<%s(%s, %s, %s)>" % ( self.__class__.__name__, str(self.steam_id), + self.relationship, self.state, )