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

Small cleanup - sets #972

Merged
merged 1 commit into from
Jul 22, 2023
Merged

Small cleanup - sets #972

merged 1 commit into from
Jul 22, 2023

Conversation

Grazfather
Copy link
Collaborator

Clean up a simple function, because the only call to it did not respect the type hint.

Some opportunistic set stuff cleaned up as well.

@@ -6416,7 +6416,7 @@ def do_invoke(self, argv: List[str]) -> None:
if "all" in argv:
tids = [t.num for t in threads]
else:
tids = self.check_thread_ids(argv)
tids = self.check_thread_ids([int(a) for a in argv])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was a list of strings before, which didn't follow the type hint for check_thread_ids.

@github-actions
Copy link

🤖 Coverage Update

  • Commit: 5e79c2a
  • Current Coverage: 71.6013%
  • New Coverage: 71.6753%
  • Diff: 0.07399999999999807

Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

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

love those kind of pr: make the code smaller, more pythonic and increase coverage 👍

@hugsy hugsy merged commit 81ee52d into dev Jul 22, 2023
3 checks passed
@Grazfather Grazfather deleted the cleanup_sets branch July 24, 2023 13:18
hugsy pushed a commit that referenced this pull request Aug 16, 2023
Fixes a bug I added in #972 which lost the order of registers
Fixes #986
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants