Skip to content

Add missing type hints in pyyaml.constructor#15746

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
tamird:patch-1
May 9, 2026
Merged

Add missing type hints in pyyaml.constructor#15746
JelleZijlstra merged 1 commit intopython:mainfrom
tamird:patch-1

Conversation

@tamird
Copy link
Copy Markdown
Contributor

@tamird tamird commented May 9, 2026

This is the same as 84682a1 which missed these for some reason.

@srittau or @JelleZijlstra who were tagged on the aforementioned commit.

This is the same as 84682a1 which missed these for some reason.
def get_single_data(self) -> Any: ...
def construct_document(self, node): ...
def construct_object(self, node, deep=False): ...
def construct_object(self, node, deep: bool = False): ...
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you're looking at this there's probably a lot more low-hanging fruit, lots of missing annotations around here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

schemathesis (https://github.com/schemathesis/schemathesis)
+ src/schemathesis/core/deserialization.py:172: error: Unused "type: ignore" comment  [unused-ignore]
+ src/schemathesis/core/deserialization.py:173: error: Unused "type: ignore" comment  [unused-ignore]

@JelleZijlstra JelleZijlstra merged commit 9f3a260 into python:main May 9, 2026
42 checks passed
@tamird tamird deleted the patch-1 branch May 9, 2026 21:54
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