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
#119 introduced dataclasses to the API of YChat, just released as v0.7.0. However, the @dataclass decorator is being passed a kw_only argument, which is only available in Python 3.10. This results in jupyterlab-chat and all upstream dependents to fail on Python 3.9 platforms now. See jupyterlab/jupyter-ai#1156 as an example.
Since Python 3.9 won't be dropped until October 2025, we will have to remove the kw_only argument for now.
Recommended action
Remove kw_only argument
Add minimum Python version (currently 3.9) tests to ensure future PRs don't cause Python version incompatibility. This has already been done in Jupyter AI.
The text was updated successfully, but these errors were encountered:
Description
#119 introduced dataclasses to the API of
YChat
, just released as v0.7.0. However, the@dataclass
decorator is being passed akw_only
argument, which is only available in Python 3.10. This results injupyterlab-chat
and all upstream dependents to fail on Python 3.9 platforms now. See jupyterlab/jupyter-ai#1156 as an example.Since Python 3.9 won't be dropped until October 2025, we will have to remove the
kw_only
argument for now.Recommended action
kw_only
argumentThe text was updated successfully, but these errors were encountered: