Skip to content

HTTPSConnection.__init__(port=) incorrectly annotated as str | None for 3.12 #11057

Closed
@allisonkarlitskaya

Description

@allisonkarlitskaya

This was introduced in #10392.

As far as I can tell by reading the code, it's only ever valid to give an integer or None. This matches the (correct) typeshed annotations for HTTPConnection and versions before Python 3.12. The problem seems to be specific to HTTPSConnection and Python 3.12.

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