From 48f1b69c7e32ed5be36dc3a76ac207dfd4a5a9bc Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 17 Jun 2024 18:03:10 +0200 Subject: [PATCH] add Path to nitpicky ignore --- doc/en/conf.py | 1 + src/_pytest/main.py | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/en/conf.py b/doc/en/conf.py index 2904b141f6f..eb00f2bcaf1 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -169,6 +169,7 @@ nitpick_ignore = [ # TODO (fix in pluggy?) ("py:class", "HookCaller"), + ("py:class", "Path"), # figure how to map to interpshinx ("py:class", "HookspecMarker"), ("py:exc", "PluginValidationError"), # Might want to expose/TODO (https://github.com/pytest-dev/pytest/issues/7469) diff --git a/src/_pytest/main.py b/src/_pytest/main.py index a19ddef58fb..5ab5cdeccfd 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -510,6 +510,7 @@ def from_parent( # type: ignore[override] :param parent: The parent collector of this Dir. :param path: The directory's path. + :type path: :ref:`python:pathlib.Path` """ return super().from_parent(parent=parent, path=path)