Skip to content

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

@kierun

Description

@kierun

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions