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
class Light: @property def _light_internal(self) -> set[str]: return set() def func(light: Light) -> None: print(light._light_internal) # should emit 'protected-access' error
Error in pylint 2.12.2, not recognized in 2.13.0
W0212: Access to a protected member _light_internal of a client class (protected-access)
The issue is caused by a change in #5662. In particular the one in _is_mandatory_method_param which prevents the protected-access check from running. https://github.com/PyCQA/pylint/blob/556304eb1e54c67940d0f9d0497ffa368b50a22a/pylint/checkers/classes/class_checker.py#L2105-L2122
_is_mandatory_method_param
protected-access
https://github.com/PyCQA/pylint/blob/556304eb1e54c67940d0f9d0497ffa368b50a22a/pylint/checkers/classes/class_checker.py#L1470-L1476
/CC: @jacobtylerwalls
The text was updated successfully, but these errors were encountered:
jacobtylerwalls
Successfully merging a pull request may close this issue.
Error in pylint 2.12.2, not recognized in 2.13.0
The issue is caused by a change in #5662. In particular the one in
_is_mandatory_method_param
which prevents theprotected-access
check from running.https://github.com/PyCQA/pylint/blob/556304eb1e54c67940d0f9d0497ffa368b50a22a/pylint/checkers/classes/class_checker.py#L2105-L2122
https://github.com/PyCQA/pylint/blob/556304eb1e54c67940d0f9d0497ffa368b50a22a/pylint/checkers/classes/class_checker.py#L1470-L1476
/CC: @jacobtylerwalls
The text was updated successfully, but these errors were encountered: