Skip to content

Fix: Remove NullLocker#7025

Merged
Secrus merged 3 commits intopython-poetry:masterfrom
moonsikpark:fix/7006-remove-nulllocker
Nov 16, 2022
Merged

Fix: Remove NullLocker#7025
Secrus merged 3 commits intopython-poetry:masterfrom
moonsikpark:fix/7006-remove-nulllocker

Conversation

@moonsikpark
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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