Skip to content

Incorrect type declaration for http.server.BaseHTTPRequestHandler.__init__ #7160

Description

@iamahuman

The type of the first parameter of http.server.BaseHTTPRequestHandler.__init__ shall be socketserver._RequestType, not bytes.

To fix this issue, simply remove the __init__ method and make BaseHTTPRequestHandler inherit from StreamRequestHandler.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions