# Isort and ruff now support sorting PEP 810 (lazy) imports

**URL:** <https://discuss.python.org/t/isort-and-ruff-now-support-sorting-pep-810-lazy-imports/107075>\
**Category:** Core Development\
**Created:** [April 23, 2026, 8:19pm UTC](https://discuss.python.org/t/isort-and-ruff-now-support-sorting-pep-810-lazy-imports/107075 "2026-04-23T20:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielNoord](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/danielnoord/32/8787_2.png) [@DanielNoord](https://discuss.python.org/u/DanielNoord)\
**Post date:** [April 23, 2026, 8:19pm UTC](https://discuss.python.org/t/isort-and-ruff-now-support-sorting-pep-810-lazy-imports/107075/1 "2026-04-23T20:19:26Z")

</div>

Opening a new thread as [PEP 810: Explicit lazy imports](https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131) was closed. Moderators please move this to wherever is most appropriate, I couldn’t make up my mind…

Thanks to some hard work by the community isort and ruff now support sorting lazy imports, just in time for the first beta release of Python 3.15.  
For `ruff` you will need version `0.15.6`, for `isort` you’ll need version `9.0.0a2`.

Obviously, I can’t speak for the folks over at `ruff` but I think we welcome any feedback on this, especially since the SC approval explicitly asked for “the linters and auto-formatters to decide the details”. We’ll need some input from the community to get those details right though 🙂

You can reach both projects at their respective repositories and issues.

Isort’s issue: [Support explicit lazy imports in Python 3.15 (PEP 810) · Issue #2462 · PyCQA/isort · GitHub](https://github.com/PyCQA/isort/issues/2462)  
Ruff’s issue: [Support and lints for `lazy` imports in Python 3.15+ · Issue #21305 · astral-sh/ruff · GitHub](https://github.com/astral-sh/ruff/issues/21305)

I am not aware of any other widely used import sorting tools, but of course if there are any feel free to reach out. Within the `isort` project we are committed to (at least try to) create a single standard for sorting these imports within the ecosystem.

---

<div class="post-metadata">

**Author:** ![steve.dower](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steve.dower/32/56_2.png) [@steve.dower](https://discuss.python.org/u/steve.dower)\
**Post date:** [April 24, 2026, 9:10am UTC](https://discuss.python.org/t/isort-and-ruff-now-support-sorting-pep-810-lazy-imports/107075/2 "2026-04-24T09:10:53Z")

</div>

(For future reference, use Core Development/Help/Packaging categories for discussions about PEPs, and keep this category for posting PEPs for review. That way people who care about actual PEPs can set their notifications for each category.)
