Closed mathatan closed 4 months ago
🧙 Sourcery has finished reviewing your pull request!
This is not how this works. You need to provide a test case and show the PR fixing that. I'm closing this out until this is provided.
Well thanks for nothing I suppose. I will just maintain my own branch from now on until this is fixed and not help with anything with this community.
Removed the non-required async definitions and await operations with async storage, resulting in
TypeError: object NoneType can't be used in 'await' expression
errors if the session is not defined before get_session is called with tokens. (or in any case when data is set toNone
before trying to retrieve it)What kind of change does this PR introduce?
Bug fix
What is the current behavior?
When creating supabase through
create_async_client
it's not possible to set/get the session with tokens due to the mentioned issue.What is the new behavior?
After async def and awaits are removed everything works. (tested originally with local changes in the files, additional context reveals actual testing against committed changes was not possible)
Additional context
I couldn't run tests against the pull request because pytest doesn't work and because it's impossible to replace the library's installation for supabase(py) because it still refers to the old gotrue project. Also, I'm not sure if there's a requirement for the async behavior so this PR might be against the needs, but as I can't use the library at all before this is fixed I'm forced to make this pull request asap.
Problems were encountered in Python 3.12.3 while running langserve through langchain. As I'm not an experienced Python developer there might be something I'm missing here. Feel free to comment or modify the pull request where needed.
Thanks,