config: improve typing

This commit is contained in:
Ran Benita
2020-06-21 00:34:41 +03:00
parent 83891d9022
commit 4655b79985
12 changed files with 143 additions and 91 deletions
+1 -1
View File
@@ -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`