Skip to content

[fix] Prevent crash on slice decorator for six decorated function #2738

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

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #2721

Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 93.25%. Comparing base (59f36e7) to head (a5022dc).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2738      +/-   ##
==========================================
+ Coverage   93.21%   93.25%   +0.03%     
==========================================
  Files          93       93              
  Lines       11072    11072              
==========================================
+ Hits        10321    10325       +4     
+ Misses        751      747       -4     
Flag Coverage Ξ”
linux 93.11% <100.00%> (+0.03%) ⬆️
pypy 93.25% <100.00%> (+0.03%) ⬆️
windows 93.23% <100.00%> (+0.03%) ⬆️

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

Files with missing lines Coverage Ξ”
astroid/brain/brain_six.py 92.13% <100.00%> (+2.24%) ⬆️

... and 1 file with indirect coverage changes

πŸš€ 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 555a128 into main May 13, 2025
22 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the 2721-attributeerror-slice-object-has-no-attribute-qname-on-fuzzed-code branch May 13, 2025 07:15
github-actions bot pushed a commit that referenced this pull request May 13, 2025
Pierre-Sassoulas added a commit that referenced this pull request May 13, 2025
Pierre-Sassoulas added a commit that referenced this pull request Jul 13, 2025
* [fix] Crash when parsing an empty arbitrary expression with ``extract_node`` (#2736) (#2737)

Closes #2734

(cherry picked from commit 59f36e7)

Co-authored-by: Pierre Sassoulas <[email protected]>

* [fix] Prevent crash on slice decorator for 'six' decorated function (#2738) (#2740)

Closes #2721

(cherry picked from commit 555a128)

Co-authored-by: Pierre Sassoulas <[email protected]>

* [Backport maintenance/3.3.x] Initial fixes for Python 3.14 (#2747) (#2748)

(cherry picked from commit 43111bb)

* Improve backport job permissions (#2750)

(cherry picked from commit fe5bb6c)

* Use custom Github App to authenticate backport job (#2751) (#2752)

(cherry picked from commit a6f8d6a)

Co-authored-by: Marc Mueller <[email protected]>

* Include subclasses of standard property classes as property decorators (#2735)

* Include subclasses of standard property types as property decorators

* Modify astroid.bases and tests.test_nodes to reflect that enum.property was added in Python 3.11, not 3.10

* Apply suggestions from code review

Co-authored-by: Pierre Sassoulas <[email protected]>

---------

Co-authored-by: Pierre Sassoulas <[email protected]>
(cherry picked from commit 30128b7)

* Bump astroid to 3.3.11, update changelog (#2777)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: pylint-backport-bot[bot] <212256041+pylint-backport-bot[bot]@users.noreply.github.com>
Co-authored-by: Mitch Harding <[email protected]>
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.

AttributeError: 'Slice' object has no attribute 'qname' on fuzzed code
2 participants