Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
volans- opened this issue Oct 8, 2024 · 0 comments
Open

Comments

@volans-
Copy link
Contributor

volans- commented Oct 8, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant