Skip to content

Conversation

@Pierre-Sassoulas
Copy link
Member

No description provided.

pylint-backport bot and others added 5 commits November 5, 2025 07:19
…in_http (#2879)

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

Closes #2877

(cherry picked from commit ff7205c)

Co-authored-by: Joao Faria <[email protected]>
…dge cases (#2881)

Handle FunctionDef blockstart_tolineno edge cases (#2880)

Getting the lineno of the start of the block for function definition(`FunctionDef.blockstart_tolineno`) can be quite tricky. Take below example:

```python
# Case A
def foo(bar: str) -> None:
    pass
# should returns line=1

# Case B
def foo(
        bar:str):
    pass
# should returns line=2

# Case C
def foo(
    bar:str
) -> None:
    pass
# should returns line=3

# Case D
def foo(
    bar:str
):
# should returns line=3
    pass
```

Currently we only handled Case A, B. With this commit we can cover case C.

But for Case D, we will need a better solution

(cherry picked from commit 8fa18c7)

Co-authored-by: Low, Zhi Hao <[email protected]>
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.0.2 milestone Nov 10, 2025
@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining astroid or the dev workflow label Nov 10, 2025
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.31%. Comparing base (8fa18c7) to head (f7d07f1).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2884   +/-   ##
=======================================
  Coverage   93.31%   93.31%           
=======================================
  Files          92       92           
  Lines       11196    11196           
=======================================
  Hits        10448    10448           
  Misses        748      748           
Flag Coverage Δ
linux 93.18% <ø> (ø)
pypy 93.31% <ø> (ø)
windows 93.30% <ø> (ø)

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 4fed8ad into main Nov 10, 2025
20 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the merge-maintenance-into-main branch November 10, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining astroid or the dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants