We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@deprecated
1 parent e6c0d1f commit 213ae30Copy full SHA for 213ae30
pyproject.toml
@@ -532,6 +532,7 @@ warn_unreachable = true
532
warn_unused_configs = true
533
no_implicit_reexport = true
534
warn_unused_ignores = true
535
+enable_error_code = [ "deprecated" ]
536
537
[tool.pyright]
538
include = [
src/_pytest/logging.py
@@ -513,7 +513,7 @@ def _force_enable_logging(
513
514
if isinstance(level, str):
515
# Try to translate the level string to an int for `logging.disable()`
516
- level = logging.getLevelName(level)
+ level = logging.getLevelName(level) # type: ignore[deprecated]
517
518
if not isinstance(level, int):
519
# The level provided was not valid, so just un-disable all logging.
0 commit comments