prospector icon indicating copy to clipboard operation
prospector copied to clipboard

[BUG] Prospector CaptureStream triggers a false positive pylint check

Open volans- opened this issue 1 year ago • 0 comments

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)

volans- avatar Oct 08 '24 08:10 volans-