Skip to content
1 change: 1 addition & 0 deletions changelog/13559.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added missing `int` and `float` variants to the `Literal` type annotation of the `type` parameter in :meth:`pytest.Parser.addini`.
4 changes: 3 additions & 1 deletion src/_pytest/config/argparsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def addini(
self,
name: str,
help: str,
type: Literal["string", "paths", "pathlist", "args", "linelist", "bool"]
type: Literal[
"string", "paths", "pathlist", "args", "linelist", "bool", "int", "float"
]
| None = None,
default: Any = NOT_SET,
) -> None:
Expand Down