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

E1101: Module 'orjson' has no 'dumps' member (no-member) #9762

Open
dpinol opened this issue Jul 2, 2024 · 1 comment
Open

E1101: Module 'orjson' has no 'dumps' member (no-member) #9762

dpinol opened this issue Jul 2, 2024 · 1 comment
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling

Comments

@dpinol
Copy link

dpinol commented Jul 2, 2024

Bug description

# pylint: disable=missing-module-docstring
import orjson
_=orjson.dumps([2]


### Configuration

_No response_

### Command used

```shell
pylint main.py

Pylint output

************* Module main
main.py:3:2: E1101: Module 'orjson' has no 'dumps' member (no-member)

Expected behavior

No error

Pylint version

pylint 3.2.5
astroid 3.2.2
Python 3.12.3 (main, Apr 11 2024, 10:16:04) [GCC 13.2.0]

OS / Environment

ubuntu 24.04

Additional dependencies

orjson==3.10.5
@dpinol dpinol added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Jul 2, 2024
@brycepg
Copy link
Contributor

brycepg commented Jul 3, 2024

Works fine when using

pylint main.py --extension-pkg-allow-list orjson

It looks like orjson is a compiled package but also has an __init__.py which might be tripping up pylint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling
Projects
None yet
Development

No branches or pull requests

2 participants