Skip to content

Dedupe return annotation matching in pyrefly coverage#3850

Open
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-return-annotation
Open

Dedupe return annotation matching in pyrefly coverage#3850
jorenham wants to merge 1 commit into
facebook:mainfrom
jorenham:coverage/dedupe-return-annotation

Conversation

@jorenham

Copy link
Copy Markdown
Contributor

Summary

Here's yet another refactor related to pyrefly coverage, deduplicating the same ReturnTypeKind matching logic from parse_functions and is_function_completely_annotated by extracting it into a shared helper function.

Test Plan

Tests still pass (refactor only; no behavior changes)

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants