-
-
Couldn't load subscription status.
- Fork 1.2k
Open
Labels
HacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsLib specific 💅This affect the code from a particular libraryThis affect the code from a particular libraryNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationNeeds astroid Brain 🧠Needs a brain tip in astroid (then an astroid upgrade)Needs a brain tip in astroid (then an astroid upgrade)
Description
Bug description
When running pylint on the following code:
from google.protobuf import any_pb2
isinstance("foo", any_pb2.Any)Throws a linter warning since protobuf==3.20.0 (It still worked fine with 3.19.4)
Executing the code directly in python yields no error:
from google.protobuf import any_pb2
isinstance("foo", any_pb2.Any)
isinstance(any_pb2.Any(), any_pb2.Any)Configuration
No response
Command used
pylint test.pyPylint output
************* Module test
test.py:5:18: E1101: Module 'google.protobuf.any_pb2' has no 'Any' member (no-member)Expected behavior
No warning.
Pylint version
pylint 2.12.1
astroid 2.9.0
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0]OS / Environment
Ubuntu 20.04
Additional dependencies
protobuf==3.19.4
protobuf==3.20.0
jimmyzzxhlh, fathom-krzysztof, meawoppl, robin-wayve, krishnachittur and 6 more
Metadata
Metadata
Assignees
Labels
HacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsLib specific 💅This affect the code from a particular libraryThis affect the code from a particular libraryNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationNeeds astroid Brain 🧠Needs a brain tip in astroid (then an astroid upgrade)Needs a brain tip in astroid (then an astroid upgrade)