We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from collections import namedtuple SomeClass = namedtuple('SomeClass', ['name']) items = [SomeClass(name='some name')] some_str = 'Items:\n' some_str += ', '.join(item.name for item in items)
The some_str += ... line gets flagged as:
some_str += ...
E1101: Instance of 'str' has no 'name' member (no-member)
The following (i.e. removing the += operator) works fine:
+=
... some_str = some_str + ', '.join(item.name for item in items)
The following also works fine:
... item_names = (item.name for item in items) some_str = 'Items:\n' some_str += ', '.join(item_names)
No error.
pylint 2.3.1 astroid 2.2.5 Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]
The text was updated successfully, but these errors were encountered:
pylint-dev/astroid@631539e
No branches or pull requests
Steps to reproduce
Current behavior
The
some_str += ...
line gets flagged as:The following (i.e. removing the
+=
operator) works fine:The following also works fine:
Expected behavior
No error.
pylint --version output
The text was updated successfully, but these errors were encountered: