FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Check functions without annotations in mypyc tests by brianschubert · Pull Request #19792 · python/mypy · GitHub

Repository navigation

Check functions without annotations in mypyc tests - #19792

Merged
hauntsaninja merged 3 commits into
python:masterfrom
brianschubert:mypyc-tests-check-untyped
Jan 18, 2026
Merged

hauntsaninja merged 3 commits into
python:masterfrom
brianschubert:mypyc-tests-check-untyped

Conversation

Copy link
Copy Markdown
Collaborator

c.f. #19217 (comment)

Disallowing functions without annotations (where not relevant to the tests) is probably a good idea, but this creates a large number of failures which would take some time to go through (many due to common issues, like untyped functions in the fixtures).

As a smaller step in the right direction, this sets check_untyped_defs = True for the run-* tests so that we at least check functions without annotations.

brianschubert requested a review from JukkaL September 4, 2025 14:42
Comment thread mypyc/test-data/run-weakref.test Outdated

JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is a good idea, though I'm hoping to annotate all test cases eventually (but this will take some work).

Comment thread mypyc/test-data/run-singledispatch.test Outdated
Comment thread mypyc/test-data/run-classes.test Outdated

JukkaL commented Sep 5, 2025

Copy link
Copy Markdown
Collaborator

I merged a change to mypyc weakref primitives and tests. Can you merge one more conflict? Then this should be good to go.

hauntsaninja merged commit b060c2d into python:master Jan 18, 2026
12 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL