fix: type __call__ function

This commit is contained in:
NiceAesth 2023-03-13 15:30:25 +02:00
parent 367a215b05
commit 0d78b00342
2 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,8 @@ pre-commit = "*"
furo = "*"
sphinx = "*"
myst-parser = "*"
black = "*"
typing-extensions = "*"
[requires]
python_version = "3.8"

View File

@ -132,7 +132,11 @@ class Player(VoiceProtocol):
)
def __call__(self, client: Client, channel: VoiceChannel) -> Player:
return self.__class__(client, channel)
self.client = client
self.channel = channel
self._guild = channel.guild
return self
def __init__(
self,