Skip to content

Conversation

@joao-faria-dev
Copy link
Contributor

Description

HTTPMethod was added in Python 3.11 but wasn't included in the brain hints. This was raising a error mentioned on this pylint issue. This PR add that to brain_http

Closes #2877

@joao-faria-dev joao-faria-dev force-pushed the feat/add-httpmethod-enum branch from 0af06e8 to d81351f Compare November 5, 2025 02:19
@Pierre-Sassoulas Pierre-Sassoulas added the Brain 🧠 Needs a brain tip label Nov 5, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.0.2 milestone Nov 5, 2025
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@aca2802). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2878   +/-   ##
=======================================
  Coverage        ?   93.30%           
=======================================
  Files           ?       92           
  Lines           ?    11194           
  Branches        ?        0           
=======================================
  Hits            ?    10445           
  Misses          ?      749           
  Partials        ?        0           
Flag Coverage Δ
linux 93.17% <ø> (?)
pypy 93.30% <ø> (?)
windows 93.29% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
astroid/brain/brain_http.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great !

@Pierre-Sassoulas Pierre-Sassoulas merged commit ff7205c into pylint-dev:main Nov 5, 2025
21 checks passed
pylint-backport bot pushed a commit that referenced this pull request Nov 5, 2025
Pierre-Sassoulas pushed a commit that referenced this pull request Nov 5, 2025
…in_http (#2879)

feat: add HTTPMethod enum support to brain_http (#2878)

Closes #2877

(cherry picked from commit ff7205c)

Co-authored-by: Joao Faria <joaovitorfaria.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPMethod missing from astroid http brain

2 participants