Skip to content

[BUG] Prospector CaptureStream triggers a false positive pylint check #677

@volans-

Description

@volans-

Describe the bug

False positive pylint no-member reported due to Prospector overriding sys.stdout with a CaptureStream instance.

To Reproduce

  1. Have some code that checks for sys.stdout.isatty()
  2. Call prospector so that it runs pylint
  3. Get as error: pylint: no-member / Instance of 'CaptureStream' has no 'isatty' member (col 15)

Expected behavior

No error is reported

Environment

  • OS: macOS Sonoma
  • Tool pylint
  • Prospector version 1.12.0
  • Python version 3.11 (reproduced also with 3.9)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions