Skip to content

Clarify usage of type hints in the standard-library modules #1304

Open

Description

@Privat33r-dev

I think that Alex summarized the issue pretty well:

In general our policy is currently not to add type hints to standard-library modules in the Lib/ directory (there are some exceptions, but they're all pretty specific). I think we still have yet to add some formal documentation around this in the devguide (we really need to!), but you can see some rationales here:

Originally posted by @AlexWaygood in python/cpython#117583 (comment)

Activity

  1. added
    type-feature
    and removed on Mar 3, 2026
  2. nishokcodes commented on Oct 22, 2026

    @nishokcodes
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

    topic-dev processtopic-stdlibtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions