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
We are returning a non-None value.
As per the official docs of Python. Returning a non-None value from an init method causes TypeError to be raised at the runtime.
Versions
Python 3.8, 3.9, 3.10
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
hey @Sai-Suraj-27, have you excluded the possibility that parent classes' __init__ returns None and these statements, granted a bit confusing knowing that __init__ shouldn't return, are just fine?
The team emphasizes on correctness through testing, so if, as you suggest this returns a non-None value thus rasing TypeError, it will show up in testing.
Feel free to clean up this nit, but note as with other distributed parts of the codebase, things are fluid and there may as well already be branches (not yet PRs) that address this or change it altogether.
What happened?
In the following 2
__init__()
methods,chroma/chromadb/db/impl/grpc/client.py
Lines 55 to 59 in 47447b6
chroma/chromadb/db/impl/grpc/server.py
Lines 56 to 59 in 47447b6
We are returning a
non-None
value.As per the official docs of Python. Returning a non-None value from an init method causes
TypeError
to be raised at the runtime.Versions
Python 3.8, 3.9, 3.10
Relevant log output
No response
The text was updated successfully, but these errors were encountered: