mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
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.
This commit is contained in:
committed by
Jelle Zijlstra
parent
282405696e
commit
3e4a251b2b
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user