ittuann opened a new issue, #4617:
URL: https://github.com/apache/streampipes/issues/4617

   ### Body
   
   Currently, the Python Client doesn't support Python 3.14. This was primarily 
blocked by our previous core dependency on `Pydantic v1`, which is deprecated 
and will not be compatible with Python 3.14 and newer versions.
   
   With the recent migration of the Python Client from `Pydantic` v1 to v2 in 
my PR [#4402](https://github.com/apache/streampipes/pull/4402) , this blocker 
has been successfully resolved.
   
   We can now officially allow the Python Client to run on Python 3.14. And I 
have already tested this locally.
   
   Meanwhile, I propose we can take this opportunity to modernize our syntax to 
align with newer Python standards. Specifically:
   - Implement [PEP 585](https://peps.python.org/pep-0585/#implementation): 
Migrate abstract base classes from the `typing` module to `collections.abc`, 
which was deprecated starting from Python 3.9 (e.g., using 
`collections.abc.Sequence` instead of `typing.Sequence`, and similarly for 
`Callable` and `AsyncIterator`).
   - Implement [PEP 585](https://peps.python.org/pep-0585/): Use standard 
collection types instead of their typing counterparts (e.g., using `dict` 
instead of `typing.Dict`)
   - Implement [PEP 604](https://peps.python.org/pep-0604/): Replace 
`typing.Optional` with the new `|` operator, as it is the recommended syntax 
starting from Python 3.10 (e.g., `str | None`).
   These updates will clean up the codebase and improve readability, ensuring 
it aligns with modern Python practices.
   
   
   ### StreamPipes Committer
   
   I acknowledge that I am a maintainer/committer of the Apache StreamPipes 
project.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to