Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with 3.12+ #64

Open
Cheaterman opened this issue Jul 11, 2024 · 0 comments
Open

Compatibility with 3.12+ #64

Cheaterman opened this issue Jul 11, 2024 · 0 comments

Comments

@Cheaterman
Copy link

lambda: asyncio.Event(loop=self.loop))

This for example won't work, and there's other issues like this

For the former, remove the kwarg ; for the latter, something like

        wrapped = func

        if not asyncio.iscoroutinefunction(wrapped):
            _original_wrapped = wrapped

            @functools.wraps(_original_wrapped)
            async def wrapper(*args, **kwargs):
                _original_wrapped(*args, **kwargs)
 
            wrapped = wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant