Describe the bug
version 4.0.1 made a mistake in the code.
Full Code
`import brawlstats as bs
TOKEN = "some token"
my_tag = "2q0ql2pl".upper()
client = bs.Client(TOKEN)
me = client.get_player(my_tag)
print(me.raw_data['tag'])`
Expected behavior
output "#2Q0QL2PL"
Actual behavior
Traceback (most recent call last):
File "test.py", line 9, in
me = client.get_player(my_tag)
File "C:\Program Files\Python38\lib\site-packages\brawlstats/utils.py", line 101, in wrapper
return func(*new_args, **new_kwargs)
File "C:\Program Files\Python38\lib\site-packages\brawlstats/core.py", line 205, in get_player
return self._get_model(url, model=Player)
File "C:\Program Files\Python38\lib\site-packages\brawlstatss/core.py", line 189, in _get_model
return model(self, data)
TypeError: init() takes 1 positional argument but 3 were given
Additional context
Python Version: 3.8.2
brawlstats Version: 4.0.1
OS (and version): it doesn't matter since it doesn’t work both on my hosting and on my computer (after upgrading from 4.0.0 to 4.0.1)
Describe the bug
version 4.0.1 made a mistake in the code.
Full Code
`import brawlstats as bs
TOKEN = "some token"
my_tag = "2q0ql2pl".upper()
client = bs.Client(TOKEN)
me = client.get_player(my_tag)
print(me.raw_data['tag'])`
Expected behavior
output "#2Q0QL2PL"
Actual behavior
Traceback (most recent call last):
File "test.py", line 9, in
me = client.get_player(my_tag)
File "C:\Program Files\Python38\lib\site-packages\brawlstats/utils.py", line 101, in wrapper
return func(*new_args, **new_kwargs)
File "C:\Program Files\Python38\lib\site-packages\brawlstats/core.py", line 205, in get_player
return self._get_model(url, model=Player)
File "C:\Program Files\Python38\lib\site-packages\brawlstatss/core.py", line 189, in _get_model
return model(self, data)
TypeError: init() takes 1 positional argument but 3 were given
Additional context
Python Version: 3.8.2
brawlstats Version: 4.0.1
OS (and version): it doesn't matter since it doesn’t work both on my hosting and on my computer (after upgrading from 4.0.0 to 4.0.1)