Description
Bug description
Simply importing exceptions from the ccxt
library is giving this error. Here's an example of how we import them:
from ccxt.base.errors import (
AuthenticationError,
ExchangeError,
ExchangeNotAvailable,
NetworkError,
RateLimitExceeded,
RequestTimeout,
)
Pycharm can find the exception classes just fine. I know they exist. It could have something to do with how the library is using __all__
, but I don't know too much about how that works to draw that conclusion.
Also, note that we're using version 1.95.1 of ccxt
. We use it in some critical paths, so we can't update it to the latest version quite yet.
The configuration written below is what I've tried, but it seems based on googling that that doesn't stop all errors from being ignored regarding those modules. So I'm still getting the issue.
Configuration
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis). It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=ccxt,ccxt.base,ccxt.base.errors
Command used
pylint test_ccxt_base_errors.py
Pylint output
************* Module test_ccxt_base_errors
test_ccxt_base_errors.py:1:0: E0611: No name 'errors' in module 'list' (no-name-in-module)
Expected behavior
No error to be reported
Pylint version
pylint 2.14.5
astroid 2.11.7
Python 3.9.16 (main, Dec 7 2022, 10:16:11)
[Clang 14.0.0 (clang-1400.0.29.202)]
OS / Environment
Intel based 2019 Mac Book Pro. Mac OS 13.1 (Ventura). Fish shell.
Additional dependencies
ccxt==1.95.1