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

pylint Instance of 'str' has no 'should' member (no-member) false positive. #164

Open
1 of 5 tasks
kierun opened this issue Feb 13, 2020 · 2 comments
Open
1 of 5 tasks
Assignees
Labels

Comments

@kierun
Copy link

kierun commented Feb 13, 2020

Issue Type

Please specify the type of the issue you want to submit:

  • Bug Report
  • Feature Request
  • Documentation Report
  • General Enhancement Idea
  • ...

Versions & Configuration

Please specify the following things:

  • version of sure 1.4.11
  • implementation and version of python 3.7.4
  • operating system CentOS 7

Steps to reproduce (Expected and Actual Results)

Create a file with:

import sure

"ook".should.equal("ook")

Run pylint (2.4.4, astroid 2.3.3) on said file to get

ook.py:3:0: E1101: Instance of 'str' has no 'should' member (no-member)

This is an accurate error in general, just not in when using sure case. Removing all no-member warning seems a little harsh but can be done via:

# noqa: pylint: disable=no-member
@gabrielfalcao
Copy link
Owner

hey @kierun thanks for the bug report, I'll work on this soon and make a release.

@gabrielfalcao gabrielfalcao self-assigned this Sep 17, 2020
@kierun
Copy link
Author

kierun commented Sep 17, 2020

Thank you! There's no rush from my end…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants