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 inconsistencies in gdb stubs #11227

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Jan 3, 2024

See #11225

Fixes all messages about final and all messages with inconsistent.

Copy link
Contributor

github-actions bot commented Jan 3, 2024

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

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

I diffed the primer stubtest outputs locally.

@@ -20,6 +20,7 @@ class XMethod:
class _XMethodWorker(Protocol):
def get_arg_types(self) -> Sequence[gdb.Type]: ...
def get_result_type(self, *args: gdb.Value) -> gdb.Type: ...
def __init__(self, name: str) -> None: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Having __init__ as a part of a protocol seems weird. Is there a reason for having it?

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.

None yet

2 participants