fix: type __call__ function
This commit is contained in:
parent
367a215b05
commit
0d78b00342
2
Pipfile
2
Pipfile
|
|
@ -13,6 +13,8 @@ pre-commit = "*"
|
|||
furo = "*"
|
||||
sphinx = "*"
|
||||
myst-parser = "*"
|
||||
black = "*"
|
||||
typing-extensions = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.8"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue