import requests
class Poll(requests.session()):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
with Poll() as p:
# do stuff
>>TypeError: __init__() takes 1 positional argument but 4 were given
I don't understand why an error is being thrown. Doesn't *args take care of any extra positional arguments?