Skip to content

Include python 3.9 in stdlibs #1540

Closed
Closed
@michaelhays

Description

@michaelhays

isort isn't recognizing zoneinfo as a part of the standard library unless I specify --py=39.

I noticed that a stdlibs/py39.py file exists (with zoneinfo), but that it isn't included in stdlibs/py3.py. I didn't look too much into how it works, but seeing that the Python Version configuration docs says the "Default is to assume any Python 3 version could be the target, and use a union of all stdlib modules across versions", I'd assume it would just work if it were added to py3.py.

(And of course, thanks for all of your work on this excellent tool!)

Activity

added this to the 5.6.0 milestone on Oct 8, 2020
added a commit that references this issue on Oct 8, 2020

Implemented #1540: Officially support Python 3.9 stdlib imports by de…

timothycrosley

timothycrosley commented on Oct 8, 2020

@timothycrosley
Member

Thanks for reporting! With the just release isort 5.6.0 release python3.9 imports are defaulted to being detected as stdlib now that Python3.9 has also been released.

Thanks!

~Timothy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @timothycrosley@michaelhays

        Issue actions

          Include python 3.9 in stdlibs · Issue #1540 · PyCQA/isort