Skip to content

HTTPMethod missing from astroid http brain #2877

@joao-faria-dev

Description

@joao-faria-dev

I saw this issue opened on pylint saying that class 'HTTPMethod' has no '__members__' when accessing HTTPMethod.__members__, even though HTTPMethod is a valid StrEnum introduced in Python 3.11 and has __members__ at runtime

This is happening because HTTPMethod is missing from astroid/brain/brain_http.py

I'll open a PR fixing that

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions