Browse Source
Removed "steam_id" argument from __new__() method call
When a new SteamUser is created, it passes SteamID() as a parameter to its __new__ method via the variable "steam_id", which in turn is passed to super().__new__(), the object class.
The passing of said argument throws the following error:
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\steam\client\user.py", line 17, in __new__
return super(SteamUser, cls).__new__(cls, steam_id)
TypeError: object() takes no parameters
Removing the "steam_id" argument fixes the issue.
pull/41/head
committed by
GitHub
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue