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

Fix: Remove NullLocker #7025

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

moonsikpark
Copy link
Contributor

Pull Request Check List

Resolves: #7006

  • Added tests for changed code.
  • Updated documentation for changed code.

mypy introduced python/mypy#12118, and it fails with empty-body on functions with empty body like this NullLocker implementation.

class NullLocker(Locker):
def set_lock_data(self, root: Package, packages: list[Package]) -> bool:
pass

It seems there is no downstream usage of this class on GitHub that we are aware of that will break implicitly. This PR deletes NullLocker and bump the version of mypy to 0.990, which is the latest.

@abn
Copy link
Member

abn commented Nov 14, 2022

@moonsikpark this would be easier to merge if you can squash the commits into two please?

  1. refactor: remove unused NullLocker
  2. chore: update mypy >= 0.990

@moonsikpark moonsikpark force-pushed the fix/7006-remove-nulllocker branch 3 times, most recently from 87fca65 to 8604b26 Compare November 15, 2022 05:41
@moonsikpark
Copy link
Contributor Author

@abn No problem.

@moonsikpark moonsikpark force-pushed the fix/7006-remove-nulllocker branch from 8604b26 to 8c67743 Compare November 16, 2022 01:42
@Secrus Secrus enabled auto-merge (squash) November 16, 2022 17:57
@Secrus Secrus disabled auto-merge November 16, 2022 18:03
@Secrus Secrus enabled auto-merge (squash) November 16, 2022 18:03
@Secrus Secrus merged commit ba97fea into python-poetry:master Nov 16, 2022
@neersighted neersighted added the kind/refactor Pulls that refactor, or clean-up code label Nov 16, 2022
@neersighted neersighted added this to the 1.3 milestone Nov 16, 2022
@moonsikpark moonsikpark deleted the fix/7006-remove-nulllocker branch November 16, 2022 21:19
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/refactor Pulls that refactor, or clean-up code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove NullLocker and satisfy mypy 0.990
4 participants