Skip to content

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

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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