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:
Sebastian Rittau
2021-06-09 16:14:22 +02:00
committed by GitHub
parent c601d5cf3d
commit 711580722b
78 changed files with 633 additions and 687 deletions

View File

@@ -1,4 +1,4 @@
from tkinter import Frame, Grid, Misc, Pack, Place, Scrollbar, Text
from tkinter import Frame, Misc, Scrollbar, Text
from typing import Any, Optional
# The methods from Pack, Place, and Grid are dynamically added over the parent's impls