Skip to content

stdlib: Maximum supported version #5304

@srittau

Description

@srittau

This came up in #5284 and at other places before: Currently we have no way to signal that a stub was removed from the stdlib. We hack around this by using a top-level version_info check, but that's not ideal.

I suggest we make use of the stdlib/VERSIONS file we have since the restructuring. Extend it a little so that no only versions are allowed, but also version ranges:

foo: 3.8
bar: 2.7-3.8

This would need a change in type checkers to parse the new format, but a simple first solution is to just add an equivalent of version = version.split("-")[0].

Cc @rchen152 @erictraut @mrkmndz

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: policyOrganization of the typeshed project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions