GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Protocols in `wsgiref.types` should use `@abstractmethod` · Issue #127678 · python/cpython

Protocols in wsgiref.types should use @abstractmethod #127678

New issue
Copy link
New issue
Copy link
Open
Open
Protocols in wsgiref.types should use @abstractmethod#127678
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement

Description

@srittau
srittau
opened on Dec 6, 2024
Issue body actions

Feature or enhancement

Proposal:

See this discussion in #127648 for reference.

Cc @JelleZijlstra

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Activity

  1. srittau
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 6, 2024
  2. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Dec 6, 2024
  3. AlexWaygood commented on Dec 6, 2024

    @AlexWaygood
    AlexWaygood
    on Dec 6, 2024
    Member
    More actions

    If it's accepted, I'm not sure this would be backportable -- it could be considered a breaking change. What if a class inherits from one of these protocols but doesn't override one of the methods you're proposing to make abstract?

  4. AlexWaygood
    added
    topic-typing
    on Dec 6, 2024
  5. srittau commented on Dec 6, 2024

    @srittau
    srittau
    on Dec 6, 2024
    ContributorAuthor
    More actions

    That is indeed a breaking change, and probably one where there's not good deprecation path. But I also assume that the impact is rather small and would point to actual bugs. But checking the top 1000 or so packages for this would be a good idea.

    Reacted by Alex Waygood and Kirill Podoprigora
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

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.