- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 305
 
fix: add missing http status codes #2840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add missing http status codes #2840
Conversation
d53d096    to
    b1cb9fc      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew something was missing in the other MR :D
b1cb9fc    to
    9cf582a      
    Compare
  
    | IM_A_TEAPOT = _HTTPStatus(418, 'I\\\'m a Teapot', | ||
| 'Server refuses to brew coffee because it is a teapot.') | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if you prefer "I'm a Teapot"? Both works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could apply black on the brain content and copy paste the result, that would make for a very clean brain. But honestly it doesn't matter much as long as astroid user get the right value :D
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@           Coverage Diff           @@
##             main    #2840   +/-   ##
=======================================
  Coverage   93.37%   93.37%           
=======================================
  Files          92       92           
  Lines       11148    11148           
=======================================
  Hits        10409    10409           
  Misses        739      739           
 Flags with carried forward coverage won't be shown. Click here to find out more. 
 🚀 New features to boost your workflow:
  | 
    
Type of Changes
Description
For the sake of completeness, pylint-dev/pylint#8859 is actually about older http status codes which were not part of #2839 or RFC9110 respectively. This PR adds 3 status codes to the HTTP brain:
103 EARLY_HINTS418 IM_A_TEAPOT425 TOO_EARLYcloses pylint-dev/pylint#8859