Ignore mypy error about missing generic arg for catch_warnings

mypy stubs recently changed warnings.catch_warnings to a Generic, in
order to have proper overloads depending on the parameters passed to it, whihc
triggers this mypy error now when we subclass it:

    src/_pytest/recwarn.py:170: error: Missing type parameters for generic type "catch_warnings"  [type-arg]

For our porpuses the parameter is not relevant (we always use record=True), so
decided to just ignore the type error.
This commit is contained in:
Bruno Oliveira
2022-10-07 11:30:24 -03:00
parent 4ee6e900a0
commit 4da0689653
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
default_language_version:
python: "3.10"
repos:
- repo: https://github.com/psf/black
rev: 22.8.0