1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

I'm not sure what I fixed

This commit is contained in:
Steffo 2020-08-05 02:48:58 +02:00
parent d7122cbaf5
commit 3dee72f20e

View file

@ -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!")