Skip to content

Commit 55bc084

Browse files
committed
doc: s/_pytest.config.Parser/_pytest.config.argparsing.Parser/
1 parent b3bb604 commit 55bc084

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def addinivalue_line(self, name, line):
974974
def getini(self, name: str):
975975
""" return configuration value from an :ref:`ini file <inifiles>`. If the
976976
specified name hasn't been registered through a prior
977-
:py:func:`parser.addini <_pytest.config.Parser.addini>`
977+
:py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>`
978978
call (usually from a plugin), a ValueError is raised. """
979979
try:
980980
return self._inicache[name]

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def getgroup(self, name, description="", after=None):
4747
4848
The returned group object has an ``addoption`` method with the same
4949
signature as :py:func:`parser.addoption
50-
<_pytest.config.Parser.addoption>` but will be shown in the
50+
<_pytest.config.argparsing.Parser.addoption>` but will be shown in the
5151
respective group in the output of ``pytest. --help``.
5252
"""
5353
for group in self._groups:

src/_pytest/hookspec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def pytest_addoption(parser, pluginmanager):
4545
files situated at the tests root directory due to how pytest
4646
:ref:`discovers plugins during startup <pluginorder>`.
4747
48-
:arg _pytest.config.Parser parser: To add command line options, call
49-
:py:func:`parser.addoption(...) <_pytest.config.Parser.addoption>`.
48+
:arg _pytest.config.argparsing.Parser parser: To add command line options, call
49+
:py:func:`parser.addoption(...) <_pytest.config.argparsing.Parser.addoption>`.
5050
To add ini-file values call :py:func:`parser.addini(...)
51-
<_pytest.config.Parser.addini>`.
51+
<_pytest.config.argparsing.Parser.addini>`.
5252
5353
:arg _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager,
5454
which can be used to install :py:func:`hookspec`'s or :py:func:`hookimpl`'s
@@ -148,7 +148,7 @@ def pytest_load_initial_conftests(early_config, parser, args):
148148
149149
:param _pytest.config.Config early_config: pytest config object
150150
:param list[str] args: list of arguments passed on the command line
151-
:param _pytest.config.Parser parser: to add command line options
151+
:param _pytest.config.argparsing.Parser parser: to add command line options
152152
"""
153153

154154

0 commit comments

Comments
 (0)