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

Remove type check from arguments-differ #4456

Merged
merged 1 commit into from
May 10, 2021
Merged

Remove type check from arguments-differ #4456

merged 1 commit into from
May 10, 2021

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented May 10, 2021

Description

Revert part of #4422 to fix crash when checking function overwrites for arguments-differ.
pylint isn't well suited to check type annotations. That's what type checkers like mypy are for which already implement such a check: https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides

/CC: @Pierre-Sassoulas @ksaketou

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes #4443

@cdce8p cdce8p added the Crash 💥 A bug that makes pylint crash label May 10, 2021
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.007%) to 91.692% when pulling a3bc1f5 on cdce8p:fix-arguments-differ-check into f9df028 on PyCQA:master.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, we should let mypy do the typing check.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 882008b into pylint-dev:master May 10, 2021
@cdce8p cdce8p deleted the fix-arguments-differ-check branch May 10, 2021 08:27
ksaketou added a commit to ksaketou/pylint that referenced this pull request May 11, 2021
This commits creates the new error arguments-renamed based on the functionality
added on pylint-dev#4422 and the changes of pylint-dev#4456.
@ksaketou ksaketou mentioned this pull request May 11, 2021
4 tasks
Pierre-Sassoulas added a commit that referenced this pull request May 17, 2021
* Create new error arguments-renamed

This commits creates the new error arguments-renamed based on the functionality
added on #4422 and the changes of #4456.

* Merge test files for arguments-differ

This commit merges the two kinds of test files that existed for the arguments-differ error, since now all
tests run in Python3.

* Add tests for arguments-renamed error
* Add new error arguments-renamed

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash 💥 A bug that makes pylint crash
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when checking function overwrites
3 participants