mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-20 18:14:26 +08:00
Enable pyright for all Python 3 stubs (#5597)
* pyright: disable reportUnknownParameterType Unknown parameter types are preferred over Any annotations for incomplete stubs. Especially larger stubs are expected to be incomplete for some time and it would be a shame to lose the other pyright warnings for those stubs. * Also disable reportUnknownVariableType Fix problems with tkinter * Disable reportUnknownMemberType Fix pyright problems
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from collections.abc import Sequence
|
||||
from typing import Any, ClassVar, NamedTuple, Optional, Tuple, Union
|
||||
from typing import Any, ClassVar, NamedTuple, Optional, Tuple
|
||||
|
||||
__docformat__: str
|
||||
__version__: str
|
||||
|
||||
@@ -3,8 +3,10 @@ from typing import Any, Optional
|
||||
|
||||
from docutils.io import FileOutput
|
||||
|
||||
_list = list
|
||||
|
||||
class DependencyList:
|
||||
list: list[str]
|
||||
list: _list[str]
|
||||
file: Optional[FileOutput]
|
||||
def __init__(self, output_file: Optional[str] = ..., dependencies: Iterable[str] = ...) -> None: ...
|
||||
def set_output(self, output_file: Optional[str]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user