summaryrefslogtreecommitdiff
path: root/src/_pytest/hookspec.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-06-21 00:34:41 +0300
committerRan Benita <ran@unusedvar.com>2020-06-22 16:39:14 +0300
commit4655b7998540d47e6f8dd783c82b37588719556d (patch)
tree16addd418c27ad56397996d03079d585b56f5770 /src/_pytest/hookspec.py
parent83891d9022076375cede03bfd8c932d450e6fcf8 (diff)
downloadpytest-4655b7998540d47e6f8dd783c82b37588719556d.tar.gz
config: improve typing
Diffstat (limited to 'src/_pytest/hookspec.py')
-rw-r--r--src/_pytest/hookspec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py
index eba6f5ba9..c05b60791 100644
--- a/src/_pytest/hookspec.py
+++ b/src/_pytest/hookspec.py
@@ -143,7 +143,7 @@ def pytest_configure(config: "Config") -> None:
@hookspec(firstresult=True)
def pytest_cmdline_parse(
pluginmanager: "PytestPluginManager", args: List[str]
-) -> Optional[object]:
+) -> Optional["Config"]:
"""return initialized config object, parsing the specified args.
Stops at first non-None result, see :ref:`firstresult`