-
Notifications
You must be signed in to change notification settings - Fork 0
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
AttributeError
(StringQuoteChecker.config
) with release of pylint==3.0.0
#1
Comments
The error happens because class pylint-quotes/pylint_quotes/checker.py Lines 27 to 29 in c9aae00
class pylint/pylint/checkers/base_checker.py class BaseTokenChecker(BaseChecker):
"""Base class for checkers that want to have access to the token stream.""" class pylint/pylint/checkers/base_checker.py class BaseChecker(_ArgumentsProvider):
# checker name (you may reuse an existing one) and class
and later removed in Pylint pylint/pylint/config/arguments_provider.py @property
def config(self) -> argparse.Namespace:
# TODO: 3.0: Remove deprecated attribute
warnings.warn(
"The checker-specific config attribute has been deprecated. Please use "
"'linter.config' to access the global configuration object.",
DeprecationWarning,
stacklevel=2,
)
return self._arguments_manager.config Like the deprecation warning says solution is to use pylint-quotes/pylint_quotes/checker.py Line 289 in c9aae00
we need to use |
AttributeError
with release of pylint==3.0.0
AttributeError
(StringQuoteChecker.config
) with release of pylint==3.0.0
Bug description
When parsing the following
utils.py
:The following error occurs with newer Pylint (
>=3.0.0
):Pylint version
OS / Environment
win32 (Windows)
Script used
I used the following script to produce the error for debugging purposes, but the same error occurs when running Pylint in command line or using Pylint extension in Visual Studio Code:
The text was updated successfully, but these errors were encountered: