fix: type __call__ function
This commit is contained in:
parent
367a215b05
commit
0d78b00342
2
Pipfile
2
Pipfile
|
|
@ -13,6 +13,8 @@ pre-commit = "*"
|
||||||
furo = "*"
|
furo = "*"
|
||||||
sphinx = "*"
|
sphinx = "*"
|
||||||
myst-parser = "*"
|
myst-parser = "*"
|
||||||
|
black = "*"
|
||||||
|
typing-extensions = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.8"
|
python_version = "3.8"
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,11 @@ class Player(VoiceProtocol):
|
||||||
)
|
)
|
||||||
|
|
||||||
def __call__(self, client: Client, channel: VoiceChannel) -> Player:
|
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__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue