Skip to content

Isort treats 'from compression import zstd' as third-party-import on python 3.14 #2461

@plywakd

Description

@plywakd

Described fully in pylint-dev/pylint#10867, which was closed due to dependency on isrot, so I am writing directly here.

from compression import zstd
from typing import Optional
from unittest.mock import Mock


def main():
    print("Hello from python3-14!")


if __name__ == "__main__":
    main()

run command:
uv run isort
And result is in wrong order, as from compression import zstd is treated as third party:

from typing import Optional
from unittest.mock import Mock

import numpy as np
from compression import zstd

I would like to see a fix, in which it is treaded as first party import as it is standard library in python 3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions