From 3e4a251b2b6da6bb43137acf5abf81ecfa7ba8ee Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 24 Aug 2019 23:30:14 +0300 Subject: [PATCH] doctest: fix type of DocTestParser.get_doctest(lineno) (#3206) Reference: https://docs.python.org/3/library/doctest.html#doctest.DocTest.lineno Also noticed a typo in get_examples() argument name. --- stdlib/2and3/doctest.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/doctest.pyi b/stdlib/2and3/doctest.pyi index 8151fb572..b6df8c5b0 100644 --- a/stdlib/2and3/doctest.pyi +++ b/stdlib/2and3/doctest.pyi @@ -56,8 +56,8 @@ class DocTest: class DocTestParser: def parse(self, string: str, name: str = ...) -> List[Union[str, Example]]: ... - def get_doctest(self, string: str, globs: Dict[str, Any], name: str, filename: Optional[str], lineno: Optional[str]) -> DocTest: ... - def get_examples(self, strin: str, name: str = ...) -> List[Example]: ... + def get_doctest(self, string: str, globs: Dict[str, Any], name: str, filename: Optional[str], lineno: Optional[int]) -> DocTest: ... + def get_examples(self, string: str, name: str = ...) -> List[Example]: ... class DocTestFinder: def __init__(self, verbose: bool = ..., parser: DocTestParser = ...,