mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-27 20:12:21 +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:
@@ -10,15 +10,15 @@ concat: Any
|
||||
|
||||
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
|
||||
|
||||
class _ContextFunction(Protocol[_CallableT]):
|
||||
class _ContextFunction(Protocol[_CallableT]): # type: ignore
|
||||
contextfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
class _EvalContextFunction(Protocol[_CallableT]):
|
||||
class _EvalContextFunction(Protocol[_CallableT]): # type: ignore
|
||||
evalcontextfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
class _EnvironmentFunction(Protocol[_CallableT]):
|
||||
class _EnvironmentFunction(Protocol[_CallableT]): # type: ignore
|
||||
environmentfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user