Skip to content

asserts: move type annotations to an asserts.pyi stubs file - #1300

Merged
bluetech merged 2 commits into
pytest-dev:mainfrom
bluetech:asserts-stubs-file
Aug 3, 2026
Merged

asserts: move type annotations to an asserts.pyi stubs file #1300
bluetech merged 2 commits into
pytest-dev:mainfrom
bluetech:asserts-stubs-file

Conversation

@bluetech

@bluetech bluetech commented Aug 3, 2026

Copy link
Copy Markdown
Member

Let's clearly separate the typing and implementation, instead of using a
large TYPE_CHECKING block. Stubs also have more flexible rules, like
not needed an implementation function signature for overloads.

Let's clearly separate the typing and implementation, instead of using a
large `TYPE_CHECKING` block. Stubs also have more flexible rules, like
not needed an implementation function signature for overloads.
@bluetech
bluetech merged commit 17f1dec into pytest-dev:main Aug 3, 2026
17 checks passed
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.

1 participant