You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm importing this - from strawberry_django_jwt.decorators import login_required
then its gives this error ImportError: cannot import name 'is_async' from 'strawberry_django.utils'
The text was updated successfully, but these errors were encountered:
importasynciodefis_async() ->bool:
""" Helper function to determine if the current context is asynchronous. :return: True if the current asyncio event loop is running, False otherwise. """try:
loop=asyncio.get_running_loop()
returnloop.is_running()
exceptRuntimeError:
returnFalsereturnFalse
Currently working on a fork lib towards a stable django 4 & 5 only build, updating deps, keeping the same API surface.
In case you're trying to do the same at home,
I have not encountered any issue in getting the lib to work on Django 5 & the newest versions of strawberry libs aside from the one on this post.
Deps updates are probably the most tricky, and dropping support for Django 3 (not because intrinsically being incompatible, but because of the lock tree creating issues) helped
This library is partially typed. Overall the codebase seems stable and clean, as it's been there under the graphene version for quite some time.
The codebase has little documentation, but the original docs - for graphene - seem to me good quality.
If successful in getting something clean, will release it publicly. Lmk if interested or willing to contribute to that - setting up sth on discord ?
When I'm importing this - from strawberry_django_jwt.decorators import login_required
then its gives this error ImportError: cannot import name 'is_async' from 'strawberry_django.utils'
The text was updated successfully, but these errors were encountered: