github pylint-dev/pylint v4.0.3

8 hours ago

What's new in Pylint 4.0.3?

Release date: 2025-11-13

False Positives Fixed

  • Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_, _add_alias_, and _add_value_alias_ to the list passed to --good-dunder-names.

    Closes #10435

  • Fixed false positive for invalid-name with typing.Annotated.

    Closes #10696

  • Fix false positive for f-string-without-interpolation with template strings
    when using format spec.

    Closes #10702

  • Fix a false positive when an UPPER_CASED class attribute was raising an
    invalid-name when typed with Final.

    Closes #10711

  • Fix a false positive for unbalanced-tuple-unpacking when a tuple is assigned to a function call and the structure of the function's return value is ambiguous.

    Closes #10721

Other Bug Fixes

  • Make 'ignore' option work as expected again.

    Closes #10669

  • Fix crash for consider-using-assignment-expr when a variable annotation without assignment
    is used as the if test expression.

    Closes #10707

  • Fix crash for prefer-typing-namedtuple and consider-math-not-float when
    a slice object is called.

    Closes #10708

Don't miss a new pylint release

NewReleases is sending notifications on new releases.