github pylint-dev/pylint v2.17.1

latest releases: v3.3.0, v3.2.7, v3.2.6...
18 months ago

False Positives Fixed

  • Adds asyncSetUp to the default defining-attr-methods list to silence
    attribute-defined-outside-init warning when using
    unittest.IsolatedAsyncioTestCase.

    Refs #8403

Other Bug Fixes

  • --clear-cache-post-run now also clears LRU caches for pylint utilities
    holding references to AST nodes.

    Closes #8361

  • Fix a crash when TYPE_CHECKING is used without importing it.

    Closes #8434

  • Fix a regression of preferred-modules where a partial match was used
    instead of the required full match.

    Closes #8453

Internal Changes

  • The following utilities are deprecated in favor of the more robust
    in_type_checking_block
    and will be removed in pylint 3.0:

    • is_node_in_guarded_import_block
    • is_node_in_typing_guarded_import_block
    • is_typing_guard

    is_sys_guard is still available, which was part of
    is_node_in_guarded_import_block.

    Refs #8433

Don't miss a new pylint release

NewReleases is sending notifications on new releases.