Skip to content

Remove urllib3 types (not before October 2023) #6898

Closed

Description

@Akuli

#6858 added stubs for urllib3. It might have been a mistake, because urllib3 seems to have its own type annotations and even a py.typed marker, making the stubs unnecessary.

Activity

  1. hauntsaninja commented on Jan 12, 2022

    @hauntsaninja
    Collaborator
  2. srittau commented on Jan 12, 2022

    @srittau
    Collaborator

    The latest released version of urllib3 (1.26.8) doesn't include the marker yet. I assume that the next major version, which will drop Python 2 support, will include it. Six months after that version's release, we can drop our version of the types.

  3. changed the title [-]urllib3 has inline type hints and a py.typed marker[/-] [+]Remove urllib3 types (not before ?)[/+] on Jan 12, 2022
  4. JelleZijlstra commented on Jan 12, 2022

    @JelleZijlstra
    Member

    Note that the master branch of urllib3 is not what it is currently releasing; the current release doesn't have the types yet. This confused us for a while in #6892.

  5. kkirsche commented on Aug 18, 2022

    @kkirsche
    Contributor

    As a status update here, the migration plan is documented here:
    https://urllib3.readthedocs.io/en/stable/v2-roadmap.html#release-and-migration-schedule

    In this, it includes:

    Release v1.26.0 with deprecation warnings for v2.0.0 breaking changes. This will be the last non-patch release within the v1.x stream.

    The current release is 1.26.11 and includes the warnings:
    https://github.com/urllib3/urllib3/releases/tag/1.26.11

    At this time, the following item has not yet occurred:

    Release v2.0.0-alpha1 once all breaking changes have been completed. We’ll wait for users to report issues, bugs, and unexpected breakages at this stage to ensure the release v2.0.0 goes smoothly.

    Current 2.0 progress can be viewed here, and is currently at 86% complete, with at least one open pull request to address dropping older OpenSSL versions:
    https://github.com/urllib3/urllib3/milestone/6

  6. kkirsche commented on Apr 26, 2023

    @kkirsche
    Contributor

    2.0.0 was released on Wednesday, April 26, 2023, at 1:20 PM EDT

    https://github.com/urllib3/urllib3/releases/tag/2.0.0

  7. changed the title [-]Remove urllib3 types (not before ?)[/-] [+]Remove urllib3 types (not before October 2023)[/+] on Apr 26, 2023
  8. AlexWaygood commented on Jul 8, 2023

    @AlexWaygood
    Member

    We should remember to do #10142 when we do this (it can't be done before, or pyright will start flagging discrepancies between the inline types in urllib3 and the stubs for urllib3 we have in typeshed)

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

    stubs: removalPending removal of third-party distributions

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions