mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
I'm not sure what I fixed
This commit is contained in:
parent
d7122cbaf5
commit
3dee72f20e
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ class Playable:
|
||||||
# PyCharm doesn't like what I'm doing here.
|
# PyCharm doesn't like what I'm doing here.
|
||||||
# noinspection PyTypeChecker
|
# noinspection PyTypeChecker
|
||||||
@classmethod
|
@classmethod
|
||||||
async def create(cls, *args, **kwargs):
|
async def create(cls):
|
||||||
"""Create a :class:`Playable` and initialize its generator."""
|
"""Create a :class:`Playable` and initialize its generator."""
|
||||||
playable = cls(*args, **kwargs)
|
playable = cls()
|
||||||
log.debug("Sending None to the generator...")
|
log.debug("Sending None to the generator...")
|
||||||
await playable.generator.asend(None)
|
await playable.generator.asend(None)
|
||||||
log.debug("Playable ready!")
|
log.debug("Playable ready!")
|
||||||
|
|
Loading…
Reference in a new issue