Skip to content

fix: allow HIDDEN_PARAM in parametrize ids type annotation#14312

Closed
r266-tech wants to merge 1 commit intopytest-dev:mainfrom
r266-tech:fix/hidden-param-type-annotation
Closed

fix: allow HIDDEN_PARAM in parametrize ids type annotation#14312
r266-tech wants to merge 1 commit intopytest-dev:mainfrom
r266-tech:fix/hidden-param-type-annotation

Conversation

@r266-tech
Copy link

What

Add to the parameter type union in overloads.

Why

Currently, the parameter type is , but (a sentinel) is a valid value that should be accepted. This causes mypy to report a false positive:

The field already accepts , so this is consistent.

Changes

  • Added to the union type in both overloads in

Fixes #14234

The  parameter of  currently has type
, but should also accept
 (a  sentinel).

This fixes mypy errors when using .

Fixes pytest-dev#14234
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.

Type annotation for parametrize ids should allow HIDDEN_PARAM

2 participants