Skip to content

feat: Python 3.14 support#678

Closed
FomalhautWeisszwerg wants to merge 10 commits into
Unstructured-IO:mainfrom
FomalhautWeisszwerg:add_python3.14_support
Closed

feat: Python 3.14 support#678
FomalhautWeisszwerg wants to merge 10 commits into
Unstructured-IO:mainfrom
FomalhautWeisszwerg:add_python3.14_support

Conversation

@FomalhautWeisszwerg
Copy link
Copy Markdown

Summary

Add Python 3.14 support. Now unstructured-ingest supports 3.11, 3.12, 3.13 and 3.14.

and some chores.

Detail

  • feat: Python 3.14 support
  • chore: replace Pydantic's private internals with public APIs.
  • chore: resolve deprecate warning for asyncio.iscoroutinefunction
    • asyncio.iscoroutinefunction has been deprecated so we need to use inspect.iscoroutinefunction instead.
    • To get more detail, please see a document in the CPython repository.
  • chore: resolve deprecate warning for datetime.datetime.utcnow
    • datetime.datetime.utcnow has been deprecated so replacing it with recommended method.
    • To get more detail, please see here

Because `asyncio.iscoroutinefunction` has been deprecated.
So we need to use `inspect.iscoroutinefunction()` instead.
To get more detail, see <https://github.com/python/cpython/blob/3.14/Doc/deprecations/pending-removal-in-3.16.rst?plain=1#L21-L23>
`datetime.datetime.utcnow()` has been deprecated and planned to removal.
Fixed by replacing it with recommended method.
To get more detail, see <https://github.com/python/cpython/blob/3.14/Doc/deprecations/pending-removal-in-future.rst?plain=1#L55-L56>
Since get_running_loop() is a thin wrapper function for _get_running_loop(),
it is unlikely to have much impact to performance.
@potter-potter
Copy link
Copy Markdown
Contributor

potter-potter commented Apr 7, 2026

@FomalhautWeisszwerg please stop. This is not how we certify python 3.14 as an acceptable upgrade. It needs to go through a validation process that involves several repos. Including private ones. If it is important to you please keep on your own Fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants