Skip to content
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

[Backport maintenance/3.0.x] Fix a crash for Enum class decorated with dataclass #9112

Merged

Commits on Oct 4, 2023

  1. Fix a crash for Enum class decorated with dataclass (#9104)

    * Fix a crash when an enum class which is also decorated with a ``dataclasses.dataclass`` decorator is defined.
    
    Closes #9100
    
    * Update test to mention the `astroid` issue that addresses the missing ``__members__`` object.
    
    * Use an `if` instead of the `try/except` block.
    
    * Update pylint/checkers/utils.py
    
    Co-authored-by: Daniël van Noord <[email protected]>
    
    ---------
    
    Co-authored-by: Daniël van Noord <[email protected]>
    (cherry picked from commit 2c3425d)
    mbyrnepr2 authored and github-actions[bot] committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    9fb7d2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    259cf91 View commit details
    Browse the repository at this point in the history