mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Alternative implementation of PEP 673

Open Gobot1234 opened this issue 3 years ago • 26 comments

Description

Alternative implementation of #11666. This piggy backs off of TypeVar but doesn't add a new node for TypeVar (which was the original issue with this idea yonks ago)

Test Plan

I'm going to wait for mypy primer to be mostly done before working the unit tests

Gobot1234 avatar Jul 15 '22 15:07 Gobot1234

Diff from mypy_primer, showing the effect of this PR on open source code:

python-sop (https://gitlab.com/dkg/python-sop)
+ proper leading type is typing_extensions._SpecialForm FuncDef:95(
+   __getitem__
+   Args(
+     Var(self)
+     Var(parameters))
+   def (typing_extensions._SpecialForm, Any?) -> object?
+   Block:95(
+     ExpressionStmt:95(
+       Ellipsis)))
+ proper leading type is typing_extensions._SpecialForm FuncDef:97(
+   __or__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing_extensions._SpecialForm, Any?) -> _SpecialForm?
+   Block:97(
+     ExpressionStmt:97(
+       Ellipsis)))
+ proper leading type is typing_extensions._SpecialForm FuncDef:98(
+   __ror__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing_extensions._SpecialForm, Any?) -> _SpecialForm?
+   Block:98(
+     ExpressionStmt:98(
+       Ellipsis)))
+ proper leading type is TypeshedSelf? FuncDef:124(
+   copy
+   Args(
+     Var(self))
+   def [TypeshedSelf] (self: TypeshedSelf?) -> TypeshedSelf?
+   Block:124(
+     ExpressionStmt:124(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:127(
+   setdefault
+   Args(
+     Var(self)
+     Var(k)
+     Var(default))
+   def (self: typing_extensions._TypedDict, k: NoReturn?, default: object?) -> object?
+   Block:127(
+     ExpressionStmt:127(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:129(
+   pop
+   Args(
+     Var(self)
+     Var(k)
+     default(
+       Var(default)
+       Ellipsis))
+   def [_T] (self: typing_extensions._TypedDict, k: NoReturn?, default: _T? =) -> object?
+   Block:129(
+     ExpressionStmt:129(
+       Ellipsis)))
+ proper leading type is _T? FuncDef:130(
+   update
+   Args(
+     Var(self)
+     Var(__m))
+   def [_T] (self: _T?, _T?) -> None?
+   Block:130(
+     ExpressionStmt:130(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:131(
+   items
+   Args(
+     Var(self))
+   def (self: typing_extensions._TypedDict) -> ItemsView?[str?, object?]
+   Block:131(
+     ExpressionStmt:131(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:132(
+   keys
+   Args(
+     Var(self))
+   def (self: typing_extensions._TypedDict) -> KeysView?[str?]
+   Block:132(
+     ExpressionStmt:132(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:133(
+   values
+   Args(
+     Var(self))
+   def (self: typing_extensions._TypedDict) -> ValuesView?[object?]
+   Block:133(
+     ExpressionStmt:133(
+       Ellipsis)))
+ proper leading type is typing_extensions._TypedDict FuncDef:134(
+   __delitem__
+   Args(
+     Var(self)
+     Var(k))
+   def (typing_extensions._TypedDict, NoReturn?) -> None?
+   Block:134(
+     ExpressionStmt:134(
+       Ellipsis)))
+ proper leading type is typing_extensions.SupportsIndex FuncDef:156(
+   __index__
+   Args(
+     Var(self))
+   def (self: typing_extensions.SupportsIndex) -> int?
+   Abstract
+   Block:156(
+     ExpressionStmt:156(
+       Ellipsis)))
+ proper leading type is typing_extensions.TypeVarTuple FuncDef:229(
+   __init__
+   Args(
+     Var(self)
+     Var(name))
+   def (self: typing_extensions.TypeVarTuple, name: str?) -> None?
+   Block:229(
+     ExpressionStmt:229(
+       Ellipsis)))
+ proper leading type is typing_extensions.TypeVarTuple FuncDef:230(
+   __iter__
+   Args(
+     Var(self))
+   def (typing_extensions.TypeVarTuple) -> Any?
+   Block:230(
+     ExpressionStmt:230(
+       Ellipsis)))
+ proper leading type is typing.TypeVar FuncDef:130(
+   __init__
+   MaxPos(2)
+   Args(
+     Var(self)
+     Var(name)
+     default(
+       Var(bound)
+       Ellipsis)
+     default(
+       Var(covariant)
+       Ellipsis)
+     default(
+       Var(contravariant)
+       Ellipsis))
+   def (self: typing.TypeVar, name: str?, *constraints: Any?, *, bound: Union[Any?, None?] =, covariant: bool? =, contravariant: bool? =) -> None?
+   VarArg(
+     Var(constraints))
+   Block:130(
+     ExpressionStmt:132(
+       Ellipsis)))
+ proper leading type is typing.TypeVar FuncDef:134(
+   __or__
+   Args(
+     Var(self)
+     Var(right))
+   def (typing.TypeVar, Any?) -> _SpecialForm?
+   Block:134(
+     ExpressionStmt:134(
+       Ellipsis)))
+ proper leading type is typing.TypeVar FuncDef:135(
+   __ror__
+   Args(
+     Var(self)
+     Var(left))
+   def (typing.TypeVar, Any?) -> _SpecialForm?
+   Block:135(
+     ExpressionStmt:135(
+       Ellipsis)))
+ proper leading type is typing._SpecialForm FuncDef:143(
+   __getitem__
+   Args(
+     Var(self)
+     Var(parameters))
+   def (typing._SpecialForm, Any?) -> object?
+   Block:143(
+     ExpressionStmt:143(
+       Ellipsis)))
+ proper leading type is typing._SpecialForm FuncDef:145(
+   __or__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing._SpecialForm, Any?) -> _SpecialForm?
+   Block:145(
+     ExpressionStmt:145(
+       Ellipsis)))
+ proper leading type is typing._SpecialForm FuncDef:146(
+   __ror__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing._SpecialForm, Any?) -> _SpecialForm?
+   Block:146(
+     ExpressionStmt:146(
+       Ellipsis)))
+ proper leading type is typing.ParamSpecArgs FuncDef:197(
+   __init__
+   Args(
+     Var(self)
+     Var(origin))
+   def (self: typing.ParamSpecArgs, origin: ParamSpec?) -> None?
+   Block:197(
+     ExpressionStmt:197(
+       Ellipsis)))
+ proper leading type is typing.ParamSpecKwargs FuncDef:201(
+   __init__
+   Args(
+     Var(self)
+     Var(origin))
+   def (self: typing.ParamSpecKwargs, origin: ParamSpec?) -> None?
+   Block:201(
+     ExpressionStmt:201(
+       Ellipsis)))
+ proper leading type is typing.ParamSpec FuncDef:208(
+   __init__
+   MaxPos(2)
+   Args(
+     Var(self)
+     Var(name)
+     default(
+       Var(bound)
+       Ellipsis)
+     default(
+       Var(contravariant)
+       Ellipsis)
+     default(
+       Var(covariant)
+       Ellipsis))
+   def (self: typing.ParamSpec, name: str?, *, bound: Union[Any?, None?] =, contravariant: bool? =, covariant: bool? =) -> None?
+   Block:208(
+     ExpressionStmt:208(
+       Ellipsis)))
+ proper leading type is typing.ParamSpec FuncDef:210(
+   args
+   Args(
+     Var(self))
+   def (self: typing.ParamSpec) -> ParamSpecArgs?
+   Property
+   Block:210(
+     ExpressionStmt:210(
+       Ellipsis)))
+ proper leading type is typing.ParamSpec FuncDef:212(
+   kwargs
+   Args(
+     Var(self))
+   def (self: typing.ParamSpec) -> ParamSpecKwargs?
+   Property
+   Block:212(
+     ExpressionStmt:212(
+       Ellipsis)))
+ proper leading type is typing.ParamSpec FuncDef:213(
+   __or__
+   Args(
+     Var(self)
+     Var(right))
+   def (typing.ParamSpec, Any?) -> _SpecialForm?
+   Block:213(
+     ExpressionStmt:213(
+       Ellipsis)))
+ proper leading type is typing.ParamSpec FuncDef:214(
+   __ror__
+   Args(
+     Var(self)
+     Var(left))
+   def (typing.ParamSpec, Any?) -> _SpecialForm?
+   Block:214(
+     ExpressionStmt:214(
+       Ellipsis)))
+ proper leading type is typing.NewType FuncDef:220(
+   __init__
+   Args(
+     Var(self)
+     Var(name)
+     Var(tp))
+   def (self: typing.NewType, name: str?, tp: Any?) -> None?
+   Block:220(
+     ExpressionStmt:220(
+       Ellipsis)))
+ proper leading type is typing.NewType FuncDef:221(
+   __call__
+   Args(
+     Var(self)
+     Var(x))
+   def [_T] (self: typing.NewType, x: _T?) -> _T?
+   Block:221(
+     ExpressionStmt:221(
+       Ellipsis)))
+ proper leading type is typing.NewType FuncDef:222(
+   __or__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.NewType, Any?) -> _SpecialForm?
+   Block:222(
+     ExpressionStmt:222(
+       Ellipsis)))
+ proper leading type is typing.NewType FuncDef:223(
+   __ror__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.NewType, Any?) -> _SpecialForm?
+   Block:223(
+     ExpressionStmt:223(
+       Ellipsis)))
+ proper leading type is typing._Alias FuncDef:247(
+   __getitem__
+   Args(
+     Var(self)
+     Var(typeargs))
+   def (typing._Alias, Any?) -> Any?
+   Block:247(
+     ExpressionStmt:247(
+       Ellipsis)))
+ proper leading type is typing.SupportsInt FuncDef:277(
+   __int__
+   Args(
+     Var(self))
+   def (typing.SupportsInt) -> int?
+   Abstract
+   Block:277(
+     ExpressionStmt:277(
+       Ellipsis)))
+ proper leading type is typing.SupportsFloat FuncDef:282(
+   __float__
+   Args(
+     Var(self))
+   def (typing.SupportsFloat) -> float?
+   Abstract
+   Block:282(
+     ExpressionStmt:282(
+       Ellipsis)))
+ proper leading type is typing.SupportsComplex FuncDef:287(
+   __complex__
+   Args(
+     Var(self))
+   def (typing.SupportsComplex) -> complex?
+   Abstract
+   Block:287(
+     ExpressionStmt:287(
+       Ellipsis)))
+ proper leading type is typing.SupportsBytes FuncDef:292(
+   __bytes__
+   Args(
+     Var(self))
+   def (self: typing.SupportsBytes) -> bytes?
+   Abstract
+   Block:292(
+     ExpressionStmt:292(
+       Ellipsis)))
+ proper leading type is typing.SupportsIndex FuncDef:298(
+   __index__
+   Args(
+     Var(self))
+   def (self: typing.SupportsIndex) -> int?
+   Abstract
+   Block:298(
+     ExpressionStmt:298(
+       Ellipsis)))
+ proper leading type is typing.SupportsAbs[_T_co`1] FuncDef:303(
+   __abs__
+   Args(
+     Var(self))
+   def (typing.SupportsAbs[_T_co`1]) -> _T_co?
+   Abstract
+   Block:303(
+     ExpressionStmt:303(
+       Ellipsis)))
+ proper leading type is typing.SupportsRound[_T_co`1] FuncDef:309(
+   __round__
+   Args(
+     Var(self))
+   def (self: typing.SupportsRound[_T_co`1]) -> int?
+   Abstract
+   Block:309(
+     ExpressionStmt:309(
+       Ellipsis)))
+ proper leading type is typing.SupportsRound[_T_co`1] FuncDef:312(
+   __round__
+   Args(
+     Var(self)
+     Var(__ndigits))
+   def (self: typing.SupportsRound[_T_co`1], int?) -> _T_co?
+   Abstract
+   Block:312(
+     ExpressionStmt:312(
+       Ellipsis)))
+ proper leading type is typing.Sized FuncDef:317(
+   __len__
+   Args(
+     Var(self))
+   def (typing.Sized) -> int?
+   Abstract
+   Block:317(
+     ExpressionStmt:317(
+       Ellipsis)))
+ proper leading type is typing.Hashable FuncDef:325(
+   __hash__
+   Args(
+     Var(self))
+   def (self: typing.Hashable) -> int?
+   Abstract
+   Block:325(
+     ExpressionStmt:325(
+       Ellipsis)))
+ proper leading type is typing.Iterable[_T_co`1] FuncDef:330(
+   __iter__
+   Args(
+     Var(self))
+   def (typing.Iterable[_T_co`1]) -> Iterator?[_T_co?]
+   Abstract
+   Block:330(
+     ExpressionStmt:330(
+       Ellipsis)))
+ proper leading type is typing.Iterator[_T_co`1] FuncDef:335(
+   __next__
+   Args(
+     Var(self))
+   def (self: typing.Iterator[_T_co`1]) -> _T_co?
+   Abstract
+   Block:335(
+     ExpressionStmt:335(
+       Ellipsis)))
+ proper leading type is typing.Iterator[_T_co`1] FuncDef:336(
+   __iter__
+   Args(
+     Var(self))
+   def (typing.Iterator[_T_co`1]) -> Iterator?[_T_co?]
+   Block:336(
+     ExpressionStmt:336(
+       Ellipsis)))
+ proper leading type is typing.Reversible[_T_co`1] FuncDef:341(
+   __reversed__
+   Args(
+     Var(self))
+   def (typing.Reversible[_T_co`1]) -> Iterator?[_T_co?]
+   Abstract
+   Block:341(
+     ExpressionStmt:341(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:344(
+   __next__
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> _T_co?
+   Block:344(
+     ExpressionStmt:344(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:346(
+   send
+   Args(
+     Var(self)
+     Var(__value))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3], _T_contra?) -> _T_co?
+   Abstract
+   Block:346(
+     ExpressionStmt:346(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:349(
+   throw
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3], Type?[BaseException?], Union[BaseException?, object?] =, Union[TracebackType?, None?] =) -> _T_co?
+   Abstract
+   Block:349(
+     ExpressionStmt:351(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:354(
+   throw
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3], BaseException?, None? =, Union[TracebackType?, None?] =) -> _T_co?
+   Abstract
+   Block:354(
+     ExpressionStmt:354(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:355(
+   close
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> None?
+   Block:355(
+     ExpressionStmt:355(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:356(
+   __iter__
+   Args(
+     Var(self))
+   def (typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> Generator?[_T_co?, _T_contra?, _V_co?]
+   Block:356(
+     ExpressionStmt:356(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:358(
+   gi_code
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> CodeType?
+   Property
+   Block:358(
+     ExpressionStmt:358(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:360(
+   gi_frame
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> FrameType?
+   Property
+   Block:360(
+     ExpressionStmt:360(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:362(
+   gi_running
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> bool?
+   Property
+   Block:362(
+     ExpressionStmt:362(
+       Ellipsis)))
+ proper leading type is typing.Generator[_T_co`1, _T_contra`2, _V_co`3] FuncDef:364(
+   gi_yieldfrom
+   Args(
+     Var(self))
+   def (self: typing.Generator[_T_co`1, _T_contra`2, _V_co`3]) -> Union[Generator?[Any?, Any?, Any?], None?]
+   Property
+   Block:364(
+     ExpressionStmt:364(
+       Ellipsis)))
+ proper leading type is typing.Awaitable[_T_co`1] FuncDef:369(
+   __await__
+   Args(
+     Var(self))
+   def (self: typing.Awaitable[_T_co`1]) -> Generator?[Any?, None?, _T_co?]
+   Abstract
+   Block:369(
+     ExpressionStmt:369(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:375(
+   cr_await
+   Args(
+     Var(self))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3]) -> Union[Any?, None?]
+   Property
+   Block:375(
+     ExpressionStmt:375(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:377(
+   cr_code
+   Args(
+     Var(self))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3]) -> CodeType?
+   Property
+   Block:377(
+     ExpressionStmt:377(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:379(
+   cr_frame
+   Args(
+     Var(self))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3]) -> FrameType?
+   Property
+   Block:379(
+     ExpressionStmt:379(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:381(
+   cr_running
+   Args(
+     Var(self))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3]) -> bool?
+   Property
+   Block:381(
+     ExpressionStmt:381(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:383(
+   send
+   Args(
+     Var(self)
+     Var(__value))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3], _T_contra?) -> _T_co?
+   Abstract
+   Block:383(
+     ExpressionStmt:383(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:386(
+   throw
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3], Type?[BaseException?], Union[BaseException?, object?] =, Union[TracebackType?, None?] =) -> _T_co?
+   Abstract
+   Block:386(
+     ExpressionStmt:388(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:391(
+   throw
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3], BaseException?, None? =, Union[TracebackType?, None?] =) -> _T_co?
+   Abstract
+   Block:391(
+     ExpressionStmt:391(
+       Ellipsis)))
+ proper leading type is typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3] FuncDef:393(
+   close
+   Args(
+     Var(self))
+   def (self: typing.Coroutine[_T_co`1, _T_contra`2, _V_co`3]) -> None?
+   Abstract
+   Block:393(
+     ExpressionStmt:393(
+       Ellipsis)))
+ proper leading type is typing.AsyncIterable[_T_co`1] FuncDef:405(
+   __aiter__
+   Args(
+     Var(self))
+   def (self: typing.AsyncIterable[_T_co`1]) -> AsyncIterator?[_T_co?]
+   Abstract
+   Block:405(
+     ExpressionStmt:405(
+       Ellipsis)))
+ proper leading type is typing.AsyncIterator[_T_co`1] FuncDef:410(
+   __anext__
+   Args(
+     Var(self))
+   def (self: typing.AsyncIterator[_T_co`1]) -> Awaitable?[_T_co?]
+   Abstract
+   Block:410(
+     ExpressionStmt:410(
+       Ellipsis)))
+ proper leading type is typing.AsyncIterator[_T_co`1] FuncDef:411(
+   __aiter__
+   Args(
+     Var(self))
+   def (self: typing.AsyncIterator[_T_co`1]) -> AsyncIterator?[_T_co?]
+   Block:411(
+     ExpressionStmt:411(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:414(
+   __anext__
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> Awaitable?[_T_co?]
+   Block:414(
+     ExpressionStmt:414(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:416(
+   asend
+   Args(
+     Var(self)
+     Var(__value))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2], _T_contra?) -> Awaitable?[_T_co?]
+   Abstract
+   Block:416(
+     ExpressionStmt:416(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:419(
+   athrow
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2], Type?[BaseException?], Union[BaseException?, object?] =, Union[TracebackType?, None?] =) -> Awaitable?[_T_co?]
+   Abstract
+   Block:419(
+     ExpressionStmt:421(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:424(
+   athrow
+   Args(
+     Var(self)
+     Var(__typ)
+     default(
+       Var(__val)
+       Ellipsis)
+     default(
+       Var(__tb)
+       Ellipsis))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2], BaseException?, None? =, Union[TracebackType?, None?] =) -> Awaitable?[_T_co?]
+   Abstract
+   Block:424(
+     ExpressionStmt:424(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:425(
+   aclose
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> Awaitable?[None?]
+   Block:425(
+     ExpressionStmt:425(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:427(
+   ag_await
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> Any?
+   Property
+   Block:427(
+     ExpressionStmt:427(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:429(
+   ag_code
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> CodeType?
+   Property
+   Block:429(
+     ExpressionStmt:429(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:431(
+   ag_frame
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> FrameType?
+   Property
+   Block:431(
+     ExpressionStmt:431(
+       Ellipsis)))
+ proper leading type is typing.AsyncGenerator[_T_co`1, _T_contra`2] FuncDef:433(
+   ag_running
+   Args(
+     Var(self))
+   def (self: typing.AsyncGenerator[_T_co`1, _T_contra`2]) -> bool?
+   Property
+   Block:433(
+     ExpressionStmt:433(
+       Ellipsis)))
+ proper leading type is typing.Container[_T_co`1] FuncDef:438(
+   __contains__
+   Args(
+     Var(self)
+     Var(__x))
+   def (typing.Container[_T_co`1], object?) -> bool?
+   Abstract
+   Block:438(
+     ExpressionStmt:438(
+       Ellipsis)))
+ proper leading type is typing.Collection[_T_co`1] FuncDef:444(
+   __len__
+   Args(
+     Var(self))
+   def (typing.Collection[_T_co`1]) -> int?
+   Abstract
+   Block:444(
+     ExpressionStmt:444(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:449(
+   __getitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.Sequence[_T_co`1], int?) -> _T_co?
+   Abstract
+   Block:449(
+     ExpressionStmt:449(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:452(
+   __getitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.Sequence[_T_co`1], slice?) -> Sequence?[_T_co?]
+   Abstract
+   Block:452(
+     ExpressionStmt:452(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:454(
+   index
+   Args(
+     Var(self)
+     Var(value)
+     default(
+       Var(start)
+       Ellipsis)
+     default(
+       Var(stop)
+       Ellipsis))
+   def (self: typing.Sequence[_T_co`1], value: Any?, start: int? =, stop: int? =) -> int?
+   Block:454(
+     ExpressionStmt:454(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:455(
+   count
+   Args(
+     Var(self)
+     Var(value))
+   def (self: typing.Sequence[_T_co`1], value: Any?) -> int?
+   Block:455(
+     ExpressionStmt:455(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:456(
+   __contains__
+   Args(
+     Var(self)
+     Var(value))
+   def (typing.Sequence[_T_co`1], object?) -> bool?
+   Block:456(
+     ExpressionStmt:456(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:457(
+   __iter__
+   Args(
+     Var(self))
+   def (typing.Sequence[_T_co`1]) -> Iterator?[_T_co?]
+   Block:457(
+     ExpressionStmt:457(
+       Ellipsis)))
+ proper leading type is typing.Sequence[_T_co`1] FuncDef:458(
+   __reversed__
+   Args(
+     Var(self))
+   def (typing.Sequence[_T_co`1]) -> Iterator?[_T_co?]
+   Block:458(
+     ExpressionStmt:458(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:462(
+   insert
+   Args(
+     Var(self)
+     Var(index)
+     Var(value))
+   def (self: typing.MutableSequence[_T`1], index: int?, value: _T?) -> None?
+   Abstract
+   Block:462(
+     ExpressionStmt:462(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:465(
+   __getitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.MutableSequence[_T`1], int?) -> _T?
+   Abstract
+   Block:465(
+     ExpressionStmt:465(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:468(
+   __getitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.MutableSequence[_T`1], slice?) -> MutableSequence?[_T?]
+   Abstract
+   Block:468(
+     ExpressionStmt:468(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:471(
+   __setitem__
+   Args(
+     Var(self)
+     Var(index)
+     Var(value))
+   def (typing.MutableSequence[_T`1], int?, _T?) -> None?
+   Abstract
+   Block:471(
+     ExpressionStmt:471(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:474(
+   __setitem__
+   Args(
+     Var(self)
+     Var(index)
+     Var(value))
+   def (typing.MutableSequence[_T`1], slice?, Iterable?[_T?]) -> None?
+   Abstract
+   Block:474(
+     ExpressionStmt:474(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:477(
+   __delitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.MutableSequence[_T`1], int?) -> None?
+   Abstract
+   Block:477(
+     ExpressionStmt:477(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:480(
+   __delitem__
+   Args(
+     Var(self)
+     Var(index))
+   def (typing.MutableSequence[_T`1], slice?) -> None?
+   Abstract
+   Block:480(
+     ExpressionStmt:480(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:482(
+   append
+   Args(
+     Var(self)
+     Var(value))
+   def (self: typing.MutableSequence[_T`1], value: _T?) -> None?
+   Block:482(
+     ExpressionStmt:482(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:483(
+   clear
+   Args(
+     Var(self))
+   def (self: typing.MutableSequence[_T`1]) -> None?
+   Block:483(
+     ExpressionStmt:483(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:484(
+   extend
+   Args(
+     Var(self)
+     Var(values))
+   def (self: typing.MutableSequence[_T`1], values: Iterable?[_T?]) -> None?
+   Block:484(
+     ExpressionStmt:484(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:485(
+   reverse
+   Args(
+     Var(self))
+   def (self: typing.MutableSequence[_T`1]) -> None?
+   Block:485(
+     ExpressionStmt:485(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:486(
+   pop
+   Args(
+     Var(self)
+     default(
+       Var(index)
+       Ellipsis))
+   def (self: typing.MutableSequence[_T`1], index: int? =) -> _T?
+   Block:486(
+     ExpressionStmt:486(
+       Ellipsis)))
+ proper leading type is typing.MutableSequence[_T`1] FuncDef:487(
+   remove
+   Args(
+     Var(self)
+     Var(value))
+   def (self: typing.MutableSequence[_T`1], value: _T?) -> None?
+   Block:487(
+     ExpressionStmt:487(
+       Ellipsis)))
+ proper leading type is TypeshedSelf? FuncDef:488(
+   __iadd__
+   Args(
+     Var(self)
+     Var(values))
+   def [TypeshedSelf] (TypeshedSelf?, Iterable?[_T?]) -> TypeshedSelf?
+   Block:488(
+     ExpressionStmt:488(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:492(
+   __contains__
+   Args(
+     Var(self)
+     Var(x))
+   def (typing.AbstractSet[_T_co`1], object?) -> bool?
+   Abstract
+   Block:492(
+     ExpressionStmt:492(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:493(
+   _hash
+   Args(
+     Var(self))
+   def (self: typing.AbstractSet[_T_co`1]) -> int?
+   Block:493(
+     ExpressionStmt:493(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:495(
+   __le__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> bool?
+   Block:495(
+     ExpressionStmt:495(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:496(
+   __lt__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> bool?
+   Block:496(
+     ExpressionStmt:496(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:497(
+   __gt__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> bool?
+   Block:497(
+     ExpressionStmt:497(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:498(
+   __ge__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> bool?
+   Block:498(
+     ExpressionStmt:498(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:499(
+   __and__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> AbstractSet?[_T_co?]
+   Block:499(
+     ExpressionStmt:499(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:500(
+   __or__
+   Args(
+     Var(self)
+     Var(other))
+   def [_T] (typing.AbstractSet[_T_co`1], AbstractSet?[_T?]) -> AbstractSet?[Union[_T_co?, _T?]]
+   Block:500(
+     ExpressionStmt:500(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:501(
+   __sub__
+   Args(
+     Var(self)
+     Var(other))
+   def (typing.AbstractSet[_T_co`1], AbstractSet?[Any?]) -> AbstractSet?[_T_co?]
+   Block:501(
+     ExpressionStmt:501(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:502(
+   __xor__
+   Args(
+     Var(self)
+     Var(other))
+   def [_T] (typing.AbstractSet[_T_co`1], AbstractSet?[_T?]) -> AbstractSet?[Union[_T_co?, _T?]]
+   Block:502(
+     ExpressionStmt:502(
+       Ellipsis)))
+ proper leading type is typing.AbstractSet[_T_co`1] FuncDef:503(
+   isdisjoint
+   Args(
+     Var(self)
+     Var(other))
+   def (self: typing.AbstractSet[_T_co`1], other: Iterable?[Any?]) -> bool?
+   Block:503(
+     ExpressionStmt:503(
+       Ellipsis)))
+ proper leading type is typing.MutableSet[_T`1] FuncDef:507(
+   add
+   Args(
+     Var(self)
+     Var(value))
+   def (self: typing.MutableSet[_T`1], value: _T?) -> None?
+   Abstract
+   Block:507(
+     ExpressionStmt:507(
+       Ellipsis)))
+ proper leading type is typing.MutableSet[_T`1] FuncDef:509(
+   discard
+   Args(
+     Var(self)
+     Var(value))
+   def (self: typing.MutableSet[_T`1], value: _T?

... (truncated 11219368 lines) ...

github-actions[bot] avatar Jul 15 '22 16:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

mypy_primer (https://github.com/hauntsaninja/mypy_primer)
+ mypy_primer.py:90: error: Argument 1 to "map" has incompatible type "Callable[[str], str]"; expected "Callable[[map[str]], str]"
+ mypy_primer.py:90: error: Argument 2 to "map" has incompatible type "Union[str, List[str]]"; expected "Iterable[map[str]]"
+ mypy_primer.py:379: error: Argument 2 to "map" has incompatible type "Generator[Path, None, None]"; expected "Iterable[map[str]]"
+ mypy_primer.py:724: error: Need type annotation for "project"
+ mypy_primer.py:724: error: Argument 1 to "zip" has incompatible type "List[Project]"; expected "Iterable[zip[<nothing>]]"
+ mypy_primer.py:725: error: "zip[Any]" has no attribute "location"
+ mypy_primer.py:726: error: "zip[Any]" has no attribute "location"
+ mypy_primer.py:726: error: Argument 1 to "map" has incompatible type "Callable[[Path], int]"; expected "Callable[[map[Any]], Any]"
+ mypy_primer.py:726: error: Argument 1 to "map" has incompatible type "Callable[[Path], int]"; expected "Callable[[map[Union[bool, Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, 0]]]], Union[bool, Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, 0]]]"
+ mypy_primer.py:800: error: Argument "type" to "add_argument" of "_ActionsContainer" has incompatible type "Type[int]"; expected "Union[Callable[[str], _ArgumentGroup], FileType]"
+ mypy_primer.py:842: error: Argument "type" to "add_argument" of "_ActionsContainer" has incompatible type "Type[int]"; expected "Union[Callable[[str], _ArgumentGroup], FileType]"
+ mypy_primer.py:845: error: Argument "type" to "add_argument" of "_ActionsContainer" has incompatible type "Type[int]"; expected "Union[Callable[[str], _ArgumentGroup], FileType]"
+ mypy_primer.py:852: error: Argument "choices" to "add_argument" of "_ActionsContainer" has incompatible type "Tuple[str, str, str]"; expected "Optional[Iterable[_ArgumentGroup]]"
+ mypy_primer.py:887: error: Argument "type" to "add_argument" of "_ActionsContainer" has incompatible type "Type[int]"; expected "Union[Callable[[str], _ArgumentGroup], FileType]"
+ mypy_primer.py:894: error: Argument "type" to "add_argument" of "_ActionsContainer" has incompatible type "Type[Path]"; expected "Union[Callable[[str], _ArgumentGroup], FileType]"

janus (https://github.com/aio-libs/janus)
+ janus/__init__.py:226: error: Argument 2 to "run_in_executor" of "AbstractEventLoop" has incompatible type "Callable[[], None]"; expected "Callable[..., AbstractEventLoop]"
+ janus/__init__.py:233: error: Argument 2 to "run_in_executor" of "AbstractEventLoop" has incompatible type "Callable[[], None]"; expected "Callable[..., AbstractEventLoop]"
+ janus/__init__.py:243: error: Argument 1 to "create_task" of "AbstractEventLoop" has incompatible type "Coroutine[Any, Any, None]"; expected "Union[Coroutine[Any, Any, AbstractEventLoop], Generator[Any, None, AbstractEventLoop]]"
+ janus/__init__.py:258: error: Argument 1 to "create_task" of "AbstractEventLoop" has incompatible type "Coroutine[Any, Any, None]"; expected "Union[Coroutine[Any, Any, AbstractEventLoop], Generator[Any, None, AbstractEventLoop]]"

graphql-core (https://github.com/graphql-python/graphql-core)
+ tests/star_wars_data.py:120: error: Argument 1 to "map" has incompatible type "Callable[[str], Coroutine[Any, Any, Optional[Character]]]"; expected "Callable[[map[Awaitable[Optional[Character]]]], Awaitable[Optional[Character]]]"
+ tests/star_wars_data.py:120: error: Argument 2 to "map" has incompatible type "Collection[str]"; expected "Iterable[map[Awaitable[Optional[Character]]]]"
+ tests/utils/gen_fuzz_strings.py:10: error: Argument 2 to "map" has incompatible type "product[Tuple[Any, ...]]"; expected "Iterable[map[str]]"
+ src/graphql/pyutils/frozen_list.py:28: error: Unsupported operand types for + ("list" and "FrozenList[T]")
+ src/graphql/pyutils/frozen_list.py:34: error: Unsupported operand types for * ("list" and "FrozenList[T]")
+ src/graphql/version.py:25: error: Argument 1 to "map" has incompatible type "Type[int]"; expected "Callable[[map[Any]], Any]"
+ src/graphql/version.py:25: error: Argument 2 to "map" has incompatible type "Union[Tuple[Union[str, Any], ...], Any]"; expected "Iterable[map[Any]]"
+ src/graphql/pyutils/natural_compare.py:17: error: No overload variant of "int" matches argument type "zip[Any]"
+ src/graphql/pyutils/natural_compare.py:17: note: Possible overload variants:
+ src/graphql/pyutils/natural_compare.py:17: note:     def __new__(cls, Union[str, bytes, array[Any], mmap, _CData, PickleBuffer, SupportsInt, SupportsIndex, SupportsTrunc] = ...) -> int
+ src/graphql/pyutils/natural_compare.py:17: note:     def __new__(cls, Union[str, bytes], base: SupportsIndex) -> int
+ src/graphql/pyutils/natural_compare.py:18: error: Argument 1 to "zip" has incompatible type "List[Union[str, Any]]"; expected "Iterable[zip[Any]]"
+ src/graphql/pyutils/suggestion_list.py:52: error: Argument 1 to "map" has incompatible type "Callable[[Union[str, bytes, bytearray]], int]"; expected "Callable[[map[int]], int]"
+ src/graphql/pyutils/suggestion_list.py:52: error: Argument 2 to "map" has incompatible type "str"; expected "Iterable[map[int]]"
+ src/graphql/pyutils/suggestion_list.py:52: note: Following member(s) of "str" have conflicts:
+ src/graphql/pyutils/suggestion_list.py:52: note:     Expected:
+ src/graphql/pyutils/suggestion_list.py:52: note:         def __iter__(self) -> Iterator[map[int]]
+ src/graphql/pyutils/suggestion_list.py:52: note:     Got:
+ src/graphql/pyutils/suggestion_list.py:52: note:         def __iter__(self) -> Iterator[str]
+ src/graphql/pyutils/suggestion_list.py:52: note:     Expected:
+ src/graphql/pyutils/suggestion_list.py:52: note:         def __iter__(self) -> Iterator[map[int]]
+ src/graphql/pyutils/suggestion_list.py:52: note:     Got:
+ src/graphql/pyutils/suggestion_list.py:52: note:         def __iter__(self) -> Iterator[str]
+ src/graphql/pyutils/suggestion_list.py:66: error: Argument 1 to "map" has incompatible type "Callable[[Union[str, bytes, bytearray]], int]"; expected "Callable[[map[int]], int]"
+ src/graphql/pyutils/suggestion_list.py:66: error: Argument 2 to "map" has incompatible type "str"; expected "Iterable[map[int]]"
+ src/graphql/pyutils/suggestion_list.py:66: note: Following member(s) of "str" have conflicts:
+ src/graphql/pyutils/suggestion_list.py:66: note:     Expected:
+ src/graphql/pyutils/suggestion_list.py:66: note:         def __iter__(self) -> Iterator[map[int]]
+ src/graphql/pyutils/suggestion_list.py:66: note:     Got:
+ src/graphql/pyutils/suggestion_list.py:66: note:         def __iter__(self) -> Iterator[str]
+ src/graphql/pyutils/suggestion_list.py:66: note:     Expected:
+ src/graphql/pyutils/suggestion_list.py:66: note:         def __iter__(self) -> Iterator[map[int]]
+ src/graphql/pyutils/suggestion_list.py:66: note:     Got:
+ src/graphql/pyutils/suggestion_list.py:66: note:         def __iter__(self) -> Iterator[str]
+ src/graphql/language/parser.py:222: error: Argument 2 to "many" of "Parser" has incompatible type "Callable[[], DefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:238: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Dict[Dict[<nothing>, <nothing>], str]"; expected "SupportsKeysAndGetItem[str, str]"
+ src/graphql/language/parser.py:238: error: Argument 1 to "fromkeys" of "dict" has incompatible type "Tuple[str, str, str]"; expected "Iterable[Dict[<nothing>, <nothing>]]"
+ src/graphql/language/parser.py:320: error: Incompatible return value type (got "List[Self]", expected "List[VariableDefinitionNode]")
+ src/graphql/language/parser.py:321: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], VariableDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:348: error: Argument 2 to "many" of "Parser" has incompatible type "Callable[[], SelectionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:384: error: Incompatible return value type (got "List[Self]", expected "List[ArgumentNode]")
+ src/graphql/language/parser.py:493: error: Argument 2 to "any" of "Parser" has incompatible type "partial[ValueNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:493: note: "partial[ValueNode].__call__" has type "Callable[[VarArg(Any), KwArg(Any)], ValueNode]"
+ src/graphql/language/parser.py:511: error: Argument 2 to "any" of "Parser" has incompatible type "partial[ObjectFieldNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:511: note: "partial[ObjectFieldNode].__call__" has type "Callable[[VarArg(Any), KwArg(Any)], ObjectFieldNode]"
+ src/graphql/language/parser.py:637: error: Argument 2 to "many" of "Parser" has incompatible type "Callable[[], OperationTypeDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:691: error: Incompatible return value type (got "List[Self]", expected "List[NamedTypeNode]")
+ src/graphql/language/parser.py:691: error: Argument 2 to "delimited_many" of "Parser" has incompatible type "Callable[[], NamedTypeNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:698: error: Incompatible return value type (got "List[Self]", expected "List[FieldDefinitionNode]")
+ src/graphql/language/parser.py:699: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], FieldDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:722: error: Incompatible return value type (got "List[Self]", expected "List[InputValueDefinitionNode]")
+ src/graphql/language/parser.py:723: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], InputValueDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:785: error: Incompatible return value type (got "List[Self]", expected "List[NamedTypeNode]")
+ src/graphql/language/parser.py:785: error: Argument 2 to "delimited_many" of "Parser" has incompatible type "Callable[[], NamedTypeNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:808: error: Incompatible return value type (got "List[Self]", expected "List[EnumValueDefinitionNode]")
+ src/graphql/language/parser.py:809: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], EnumValueDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:854: error: Incompatible return value type (got "List[Self]", expected "List[InputValueDefinitionNode]")
+ src/graphql/language/parser.py:855: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], InputValueDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:865: error: Argument 2 to "optional_many" of "Parser" has incompatible type "Callable[[], OperationTypeDefinitionNode]"; expected "Callable[[], Self]"
+ src/graphql/language/parser.py:988: error: Incompatible return value type (got "List[Self]", expected "List[NameNode]")
+ src/graphql/language/parser.py:988: error: Argument 2 to "delimited_many" of "Parser" has incompatible type "Callable[[], NameNode]"; expected "Callable[[], Self]"
+ src/graphql/type/schema.py:365: error: Incompatible return value type (got "Union[InterfaceImplementations, Dict[str, InterfaceImplementations]]", expected "InterfaceImplementations")
+ src/graphql/type/schema.py:409: error: Argument 1 to "fromkeys" of "dict" has incompatible type "Collection[GraphQLType]"; expected "Iterable[Self]"
+ src/graphql/type/schema.py:459: error: Incompatible return value type (got "Union[GraphQLNamedType, Dict[str, GraphQLNamedType]]", expected "GraphQLType")
+ src/graphql/type/validate.py:546: error: Argument 2 to "map" has incompatible type "List[Tuple[str, GraphQLInputField]]"; expected "Iterable[map[Any]]"
+ src/graphql/type/validate.py:553: error: Argument 2 to "map" has incompatible type "List[Tuple[str, GraphQLInputField]]"; expected "Iterable[map[Any]]"
+ src/graphql/type/validate.py:553: error: Argument 2 to "map" has incompatible type "List[Tuple[str, GraphQLInputField]]"; expected "Iterable[map[map[Any]]]"
+ src/graphql/utilities/print_schema.py:60: error: Argument 1 to "map" has incompatible type "Callable[[GraphQLDirective], str]"; expected "Callable[[map[str]], str]"
+ src/graphql/utilities/print_schema.py:60: error: Argument 2 to "map" has incompatible type "filter[GraphQLDirective]"; expected "Iterable[map[str]]"
+ src/graphql/utilities/print_schema.py:61: error: Argument 1 to "map" has incompatible type "Callable[[GraphQLNamedType], str]"; expected "Callable[[map[str]], str]"
+ src/graphql/utilities/print_schema.py:61: error: Argument 2 to "map" has incompatible type "filter[GraphQLNamedType]"; expected "Iterable[map[str]]"
+ src/graphql/execution/execute.py:222: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:222: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:372: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:372: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:426: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:426: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:449: error: Argument 1 to "update" of "MutableMapping" has incompatible type "zip[Tuple[zip[<nothing>], Union[Awaitable[Any], Any]]]"; expected "Iterable[Tuple[str, Union[Awaitable[Any], Any]]]"
+ src/graphql/execution/execute.py:450: error: Argument 1 to "zip" has incompatible type "List[str]"; expected "Iterable[zip[<nothing>]]"
+ src/graphql/execution/execute.py:482: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:482: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:523: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:523: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:530: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:530: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:543: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:543: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:696: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:696: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:756: error: Need type annotation for "index"
+ src/graphql/execution/execute.py:757: error: Argument 1 to "zip" has incompatible type "List[int]"; expected "Iterable[zip[<nothing>]]"
+ src/graphql/execution/execute.py:762: error: No overload variant of "__setitem__" of "list" matches argument types "zip[Any]", "Any"
+ src/graphql/execution/execute.py:762: note: Possible overload variants:
+ src/graphql/execution/execute.py:762: note:     def __setitem__(self, SupportsIndex, Any) -> None
+ src/graphql/execution/execute.py:762: note:     def __setitem__(self, slice, Iterable[Any]) -> None
+ src/graphql/execution/execute.py:798: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:798: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:815: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:815: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:911: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "Self"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:911: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[Self]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/execute.py:950: error: Argument 2 to "map" has incompatible type "List[FieldNode]"; expected "Iterable[map[int]]"
+ src/graphql/execution/execute.py:1032: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "ExecutionContext"; expected "staticmethod[bool]"
+ src/graphql/execution/execute.py:1032: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[ExecutionContext]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/execution/subscribe.py:205: error: Argument 1 to "__get__" of "staticmethod" has incompatible type "ExecutionContext"; expected "staticmethod[bool]"
+ src/graphql/execution/subscribe.py:205: error: Argument 2 to "__get__" of "staticmethod" has incompatible type "Type[ExecutionContext]"; expected "Optional[Type[staticmethod[bool]]]"
+ src/graphql/validation/rules/possible_type_extensions.py:109: error: Incompatible return value type (got "Union[str, Dict[str, str]]", expected "str")
+ src/graphql/validation/rules/known_type_names.py:65: error: Argument 2 to "suggestion_list" has incompatible type "object"; expected "Collection[str]"
+ src/graphql/validation/rules/known_type_names.py:65: error: Unsupported operand types for + ("List[Union[str, Set[str]]]" and "List[str]")
+ src/graphql/validation/rules/known_type_names.py:77: error: Argument 1 to "union" of "set" has incompatible type "Mapping[str, GraphQLNamedType]"; expected "Iterable[Set[str]]"
+ tests/utilities/test_print_schema.py:538: error: Argument "values" to "GraphQLEnumType" has incompatible type "Dict[Dict[<nothing>, <nothing>], Optional[Any]]"; expected "Union[Dict[str, GraphQLEnumValue], Mapping[str, Any], Type[Enum]]"
+ tests/utilities/test_print_schema.py:538: error: Argument 1 to "fromkeys" of "dict" has incompatible type "Tuple[str, str, str]"; expected "Iterable[Dict[<nothing>, <nothing>]]"
+ tests/pyutils/test_inspect.py:233: error: Need type annotation for "s"
+ tests/pyutils/test_inspect.py:233: error: Argument 1 to "zip" has incompatible type "Generator[str, None, None]"; expected "Iterable[zip[<nothing>]]"
+ tests/language/test_visitor.py:410: error: Unsupported operand types for + ("Tuple[FieldNode]" and "Tuple[SelectionNode, ...]")
+ tests/benchmarks/test_execution_async.py:46: error: Argument 1 to "run_until_complete" of "AbstractEventLoop" has incompatible type "Coroutine[Any, Any, ExecutionResult]"; expected "Awaitable[AbstractEventLoop]"

ignite (https://github.com/pytorch/ignite)
+ ignite/distributed/comp_models/native.py:233: error: Incompatible types in assignment (expression has type "Union[str, _Environ[str]]", target has type "str")  [assignment]
+ ignite/distributed/comp_models/native.py:234: error: Incompatible types in assignment (expression has type "Union[str, _Environ[str]]", target has type "str")  [assignment]
+ ignite/distributed/comp_models/native.py:237: error: Incompatible types in assignment (expression has type "Union[str, _Environ[str]]", target has type "str")  [assignment]
+ ignite/distributed/comp_models/native.py:238: error: Incompatible types in assignment (expression has type "Union[str, _Environ[str]]", target has type "str")  [assignment]
+ ignite/distributed/comp_models/native.py:239: error: Incompatible types in assignment (expression has type "Union[str, _Environ[str]]", target has type "str")  [assignment]
+ ignite/distributed/comp_models/native.py:529: error: No overload variant of "get" of "dict" matches argument types "str", "None"  [call-overload]
+ ignite/distributed/comp_models/native.py:529: note: Possible overload variants:
+ ignite/distributed/comp_models/native.py:529: note:     def get(self, str) -> Optional[str]
+ ignite/distributed/comp_models/native.py:529: note:     def get(self, str, Union[str, Dict[str, str]]) -> Union[str, Dict[str, str]]
+ ignite/engine/deterministic.py:129: error: Argument 1 to "__call__" of "IdentityFunction" has incompatible type "Callable[[VarArg(Any), KwArg(Any)], None]"; expected "IdentityFunction"  [arg-type]
+ ignite/distributed/utils.py:582: error: Argument 1 to "__call__" of "IdentityFunction" has incompatible type "Callable[[VarArg(Any), KwArg(Any)], Optional[Any]]"; expected "IdentityFunction"  [arg-type]
+ ignite/distributed/launcher.py:229: error: Need type annotation for "name"  [var-annotated]
+ ignite/distributed/launcher.py:229: error: Argument 1 to "zip" has incompatible type "List[str]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/metrics/metric.py:552: error: Argument 1 to "__call__" of "IdentityFunction" has incompatible type "Callable[[Metric, VarArg(Any), KwArg(Any)], Callable[..., Any]]"; expected "IdentityFunction"  [arg-type]
+ ignite/metrics/metric.py:594: error: Argument 1 to "__call__" of "IdentityFunction" has incompatible type "Callable[[Metric, VarArg(Any), KwArg(Any)], None]"; expected "IdentityFunction"  [arg-type]
+ ignite/metrics/nlp/rouge.py:154: error: Need type annotation for "_candidate"  [var-annotated]
+ ignite/metrics/nlp/rouge.py:154: error: Argument 1 to "zip" has incompatible type "Sequence[Sequence[Any]]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/metrics/nlp/rouge.py:155: error: Argument "candidate" to "_compute_score" of "_BaseRouge" has incompatible type "zip[Any]"; expected "Sequence[Any]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:39: error: "zip[Any]" has no attribute "item"  [attr-defined]
+ ignite/metrics/nlp/bleu.py:39: error: Non-overlapping equality check (left operand type: "zip[Any]", right operand type: "Literal[0]")  [comparison-overlap]
+ ignite/metrics/nlp/bleu.py:54: error: "zip[Any]" has no attribute "item"  [attr-defined]
+ ignite/metrics/nlp/bleu.py:61: error: "zip[Any]" has no attribute "item"  [attr-defined]
+ ignite/metrics/nlp/bleu.py:169: error: Need type annotation for "refs"  [var-annotated]
+ ignite/metrics/nlp/bleu.py:169: error: Argument 1 to "zip" has incompatible type "Sequence[Sequence[Sequence[Any]]]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:173: error: Argument 1 to "modified_precision" has incompatible type "zip[Any]"; expected "Sequence[Sequence[Any]]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:181: error: Argument 1 to "_closest_ref_length" has incompatible type "zip[Any]"; expected "Sequence[Sequence[Any]]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:209: error: Need type annotation for "w_i"  [var-annotated]
+ ignite/metrics/nlp/bleu.py:209: error: Unsupported operand types for * ("zip[Any]" and "float")  [operator]
+ ignite/metrics/nlp/bleu.py:209: error: Argument 1 to "zip" has incompatible type "List[float]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:251: error: Need type annotation for "refs"  [var-annotated]
+ ignite/metrics/nlp/bleu.py:251: error: Argument 1 to "zip" has incompatible type "Sequence[Sequence[Sequence[Any]]]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/metrics/nlp/bleu.py:252: error: Argument "references" to "_sentence_bleu" of "Bleu" has incompatible type "zip[Any]"; expected "Sequence[Sequence[Any]]"  [arg-type]
+ ignite/handlers/time_profilers.py:124: error: Need type annotation for "e"  [var-annotated]
+ ignite/handlers/time_profilers.py:124: error: Argument 1 to "zip" has incompatible type "List[Events]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/time_profilers.py:127: error: Argument 1 to "zip" has incompatible type "List[Events]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/time_profilers.py:205: error: Need type annotation for "e"  [var-annotated]
+ ignite/handlers/time_profilers.py:205: error: Argument 1 to "zip" has incompatible type "List[Events]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/time_profilers.py:208: error: Argument 1 to "zip" has incompatible type "List[Events]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/time_profilers.py:503: error: Argument 1 to "__call__" of "IdentityFunction" has incompatible type "Callable[[VarArg(Any), KwArg(Any)], None]"; expected "IdentityFunction"  [arg-type]
+ ignite/handlers/param_scheduler.py:141: error: No overload variant of "get" of "dict" matches argument types "str", "str"  [call-overload]
+ ignite/handlers/param_scheduler.py:141: note: Possible overload variants:
+ ignite/handlers/param_scheduler.py:141: note:     def get(self, str) -> Optional[Mapping[Any, Any]]
+ ignite/handlers/param_scheduler.py:141: note:     def get(self, str, Union[Mapping[Any, Any], Dict[str, Mapping[Any, Any]]]) -> Union[Mapping[Any, Any], Dict[str, Mapping[Any, Any]]]
+ ignite/handlers/param_scheduler.py:683: error: Need type annotation for "s"  [var-annotated]
+ ignite/handlers/param_scheduler.py:683: error: Argument 1 to "zip" has incompatible type "List[ParamScheduler]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/param_scheduler.py:684: error: "zip[Any]" has no attribute "load_state_dict"  [attr-defined]
+ ignite/handlers/param_scheduler.py:1328: error: Need type annotation for "scheduler"  [var-annotated]
+ ignite/handlers/param_scheduler.py:1328: error: Argument 1 to "zip" has incompatible type "List[ParamScheduler]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/param_scheduler.py:1329: error: "zip[Any]" not callable  [operator]
+ ignite/handlers/param_scheduler.py:1353: error: Need type annotation for "n"  [var-annotated]
+ ignite/handlers/param_scheduler.py:1353: error: Argument 1 to "zip" has incompatible type "List[str]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/param_scheduler.py:1377: error: Need type annotation for "req_n"  [var-annotated]
+ ignite/handlers/param_scheduler.py:1377: error: Argument 1 to "zip" has incompatible type "List[str]"; expected "Iterable[zip[<nothing>]]"  [arg-type]
+ ignite/handlers/checkpoint.py:436: error: "map[object]" has no attribute "filename"  [attr-defined]
+ ignite/handlers/checkpoint.py:436: error: "map[Any]" has no attribute "filename"  [attr-defined]
+ ignite/handlers/checkpoint.py:436: error: Argument 2 to "map" has incompatible type "List[Item]"; expected "Iterable[map[Any]]"  [arg-type]
+ ignite/handlers/checkpoint.py:665: error: Argument 1 to "_get_filename_pattern" of "Checkpoint" has incompatible type "Union[Any, Dict[str, Any]]"; expected "Optional[int]"  [arg-type]
+ ignite/handlers/checkpoint.py:672: error: Incompatible types in assignment (expression has type "Union[Any, Dict[str, Any]]", variable has type "str")  [assignment]
+ ignite/handlers/ema_handler.py:196: error: "zip[Any]" has no attribute "mul_"  [attr-defined]
+ ignite/handlers/ema_handler.py:201: error: "zip[Any]" has no attribute "mul_"  [attr-defined]
+ ignite/handlers/ema_handler.py:206: error: "zip[Any]" has no attribute "data"  [attr-defined]
+ ignite/handlers/ema_handler.py:210: error: "zip[Any]" has no attribute "data"  [attr-defined]
+ ignite/contrib/handlers/visdom_logger.py:176: error: No overload variant of "get" of "Mapping" matches argument types "str", "int"  [call-overload]
+ ignite/contrib/handlers/visdom_logger.py:176: note: Possible overload variants:
+ ignite/contrib/handlers/visdom_logger.py:176: note:     def get(self, str) -> Optional[str]
+ ignite/contrib/handlers/visdom_logger.py:176: note:     def get(self, str, default: Union[str, _Environ[str]]) -> Union[str, _Environ[str]]
+ ignite/contrib/handlers/visdom_logger.py:179: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]
+ ignite/contrib/handlers/visdom_logger.py:179: note: Possible overload variants:
+ ignite/contrib/handlers/visdom_logger.py:179: note:     def get(self, str) -> Optional[str]
+ ignite/contrib/handlers/visdom_logger.py:179: note:     def get(self, str, default: Union[str, _Environ[str]]) -> Union[str, _Environ[str]]
+ ignite/contrib/handlers/visdom_logger.py:183: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]
+ ignite/contrib/handlers/visdom_logger.py:183: note: Possible overload variants:
+ ignite/contrib/handlers/visdom_logger.py:183: note:     def get(self, str) -> Optional[str]
+ ignite/contrib/handlers/visdom_logger.py:183: note:     def get(self, str, default: Union[str, _Environ[str]]) -> Union[str, _Environ[str]]
+ ignite/contrib/handlers/tqdm_logger.py:216: error: Argument 1 to "_OutputHandler" has incompatible type "Union[Any, Dict[str

... (truncated 22680 lines) ...

github-actions[bot] avatar Jul 15 '22 16:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pegen (https://github.com/we-like-parsers/pegen)
+ src/pegen/sccutils.py:89: error: Value of type variable "Self" of "union" of "set" cannot be "Set[AbstractSet[str]]"  [type-var]

graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/pyutils/frozen_list.py:28: error: Value of type variable "Self" of "__add__" of "list" cannot be "FrozenList[T]"
+ src/graphql/pyutils/frozen_list.py:34: error: Value of type variable "Self" of "__mul__" of "list" cannot be "FrozenList[T]"

boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/path.py:101: error: Incompatible return value type (got "object", expected "LocalPath")
+ boostedblob/path.py:166: error: Incompatible return value type (got "object", expected "AzurePath")
+ boostedblob/path.py:223: error: Incompatible return value type (got "object", expected "GooglePath")

psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/server_cursor.py:237: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ psycopg/psycopg/server_cursor.py:379: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ tests/test_psycopg_dbapi20.py:43: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:43: note: Error code "misc" not covered by "type: ignore" comment
+ tests/test_psycopg_dbapi20.py:44: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:44: note: Error code "misc" not covered by "type: ignore" comment

mypy (https://github.com/python/mypy)
+ mypy/build.py:3340: error: Value of type variable "Self" of "union" of "set" cannot be "Set[T]"  [type-var]

rich (https://github.com/willmcgugan/rich)
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "TextIO", variable has type "_I")  [assignment]
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "BinaryIO", variable has type "_I")  [assignment]
+ rich/progress.py:278: error: Returning Any from function declared to return "TextIO"  [no-any-return]
+ rich/progress.py:278: error: Returning Any from function declared to return "BinaryIO"  [no-any-return]
+ rich/progress.py:278: error: "_I" has no attribute "__enter__"  [attr-defined]
+ rich/progress.py:287: error: "_I" has no attribute "__exit__"  [attr-defined]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:33: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:34: error: Access to generic instance variables via class is ambiguous

paasta (https://github.com/yelp/paasta)
+ paasta_tools/bounce_lib.py:346: error: Value of type variable "Self" of "union" of "set" cannot be "Set[<nothing>]"

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/mixology/term.py:130: error: "object" has no attribute "constraint"  [attr-defined]

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/setup_command.py:105:26: error: "BuildDoc" has no attribute "distribution"  [attr-defined]
+ sphinx/setup_command.py:105:26: error: "Self" has no attribute "distribution"  [attr-defined]
- sphinx/setup_command.py:147:16: error: "BuildDoc" has no attribute "verbose"  [attr-defined]
+ sphinx/setup_command.py:147:16: error: "Self" has no attribute "verbose"  [attr-defined]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/iostream.py:1321: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/iostream.py:1445: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/websocket.py:1484: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[str]]"  [arg-type]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[bytes]]"  [arg-type]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "str")  [return-value]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "bytes")  [return-value]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[str, str]")  [return-value]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[bytes, bytes]")  [return-value]
+ src/_pytest/logging.py:777: error: No overload variant of "__init__" of "StreamHandler" matches argument type "TerminalReporter"  [call-overload]
+ src/_pytest/logging.py:777: note: Error code "call-overload" not covered by "type: ignore" comment
+ src/_pytest/logging.py:777: note: Possible overload variants:
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: None = ...) -> None
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: StringIO) -> None

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "k"  [var-annotated]
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "v"  [var-annotated]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "argnames"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "argnames"
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "args"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "args"
- ibis/expr/types/relations.py:557: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Sequence[Union[Value, str]]]"
+ ibis/expr/types/relations.py:557: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Sequence[Union[Value, str]]]"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "argnames"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "argnames"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "args"
- ibis/expr/datatypes/core.py:128: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:128: error: "Self" has no attribute "args"
- ibis/backends/base/__init__.py:398: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:398: error: "Type[Self]" has no attribute "Options"
- ibis/backends/base/__init__.py:415: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:415: error: "Self" has no attribute "compiler"
- ibis/backends/base/__init__.py:457: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:457: error: "Self" has no attribute "compiler"
- ibis/expr/types/temporal.py:187: error: "_TimeComponentMixin" has no attribute "op"
+ ibis/expr/types/temporal.py:187: error: "Self" has no attribute "op"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping
- ibis/expr/operations/reductions.py:276: error: "ibis.expr.operations.reductions.Any" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:276: error: "Self" has no attribute "args"
- ibis/expr/operations/reductions.py:286: error: "NotAny" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:286: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:189: error: "ExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:189: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:201: error: "NotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:201: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:258: error: "UnresolvedExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:258: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:268: error: "UnresolvedNotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:268: error: "Self" has no attribute "args"
- ibis/backends/tests/test_generic.py:100: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_generic.py:100: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/postgres/tests/test_geospatial.py:199: error: Argument 1 has incompatible type "int"; expected "NumericValue"
- ibis/backends/postgres/tests/test_functions.py:430: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/postgres/tests/test_geospatial.py:199: error: Value of type variable "Self" of function cannot be "int"
+ ibis/backends/postgres/tests/test_functions.py:430: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/clickhouse/tests/test_functions.py:152: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/clickhouse/tests/test_functions.py:152: error: Value of type variable "Self" of function cannot be "int"
- ibis/tests/expr/test_value_exprs.py:1383: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/tests/expr/test_value_exprs.py:1383: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/base/sql/__init__.py:194: error: "BaseSQLBackend" has no attribute "expr"
+ ibis/backends/base/sql/__init__.py:194: error: "Self" has no attribute "expr"
- ibis/backends/base/sql/__init__.py:263: error: "BaseSQLBackend" has no attribute "_get_list"
+ ibis/backends/base/sql/__init__.py:263: error: "Self" has no attribute "_get_list"
- ibis/backends/base/sql/alchemy/__init__.py:346: error: "BaseAlchemyBackend" has no attribute "database_name"
+ ibis/backends/base/sql/alchemy/__init__.py:346: error: "Self" has no attribute "database_name"
- ibis/backends/tests/test_numeric.py:316: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_numeric.py:315: error: Value of type variable "Self" of function cannot be "int"

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:503: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:503: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:910: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:910: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:445: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:445: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:457: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:464: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:582: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:582: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:586: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:586: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/__init__.py:61: error: "MsgBase[M]" has no attribute "skip"  [attr-defined]
+ steam/protobufs/__init__.py:61: error: "Self" has no attribute "skip"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:174: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:189: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:624: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:632: error: Self? has no attribute "created_at"  [attr-defined]
- steam/role.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:284: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/trade.py:290: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:290: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:331: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:331: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:570: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:570: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:579: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:579: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/package.py:147: error: Unsupported left operand type for & (Self?)  [operator]
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:562: error: "BaseUser" has no attribute "_level"; maybe "level"?  [attr-defined]
+ steam/abc.py:562: error: "Self" has no attribute "_level"  [attr-defined]
- steam/abc.py:636: error: "BaseUser" has no attribute "is_friend"  [attr-defined]
+ steam/abc.py:636: error: "Self" has no attribute "is_friend"  [attr-defined]
- steam/abc.py:985: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:985: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:1012: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:1012: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/user.py:177: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:177: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:177: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:177: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:324: error: Incompatible types in assignment (expression has type "List[User]", base class "BaseUser" defined the type as "Callable[[BaseUser], Coroutine[Any, Any, List[User]]]")  [assignment]
+ steam/user.py:324: error: Incompatible types in assignment (expression has type "List[User]", base class "BaseUser" defined the type as "Callable[[Self], Coroutine[Any, Any, List[User]]]")  [assignment]
- steam/user.py:332: error: "ClientUser" has no attribute "has_setup_profile"; maybe "setup_profile"?  [attr-defined]
+ steam/user.py:332: error: "Self" has no attribute "has_setup_profile"  [attr-defined]
- steam/game_server.py:238: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:238: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:239: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:239: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:240: error: "Query[T_co]" has no attribute "_callback"  [attr-defined]
+ steam/game_server.py:240: error: "Self" has no attribute "_callback"  [attr-defined]
- steam/game_server.py:250: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:250: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:268: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:268: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:274: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:274: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:275: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:275: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:278: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:278: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:287: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Tuple[object, ...], Any, SupportsIndex, SupportsIndex], int]")  [assignment]
+ steam/game_server.py:287: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Self, Any, SupportsIndex, SupportsIndex], int]")  [assignment]
- steam/game_server.py:341: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/game_server.py:341: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:236: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:636: error: Trying to assign name "sha" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:637: error: Trying to assign name "size" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:638: error: Trying to assign name "change_number" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/review.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:206: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:206: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/chat.py:50: error: Trying to assign name "_state" that is not in "__slots__" of type "steam.chat.WrapsUser"  [misc]
- steam/chat.py:244: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/chat.py:244: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 

... (truncated 3756 lines) ...

github-actions[bot] avatar Jul 17 '22 18:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pegen (https://github.com/we-like-parsers/pegen)
+ src/pegen/sccutils.py:89: error: Value of type variable "Self" of "union" of "set" cannot be "Set[AbstractSet[str]]"  [type-var]

boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/path.py:101: error: Incompatible return value type (got "object", expected "LocalPath")
+ boostedblob/path.py:166: error: Incompatible return value type (got "object", expected "AzurePath")
+ boostedblob/path.py:223: error: Incompatible return value type (got "object", expected "GooglePath")

psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/server_cursor.py:237: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ psycopg/psycopg/server_cursor.py:379: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ tests/test_psycopg_dbapi20.py:43: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:43: note: Error code "misc" not covered by "type: ignore" comment
+ tests/test_psycopg_dbapi20.py:44: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:44: note: Error code "misc" not covered by "type: ignore" comment

mypy (https://github.com/python/mypy)
+ mypy/build.py:3340: error: Value of type variable "Self" of "union" of "set" cannot be "Set[T]"  [type-var]

paasta (https://github.com/yelp/paasta)
+ paasta_tools/bounce_lib.py:346: error: Value of type variable "Self" of "union" of "set" cannot be "Set[<nothing>]"

rich (https://github.com/willmcgugan/rich)
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "TextIO", variable has type "_I")  [assignment]
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "BinaryIO", variable has type "_I")  [assignment]
+ rich/progress.py:278: error: Returning Any from function declared to return "TextIO"  [no-any-return]
+ rich/progress.py:278: error: Returning Any from function declared to return "BinaryIO"  [no-any-return]
+ rich/progress.py:278: error: "_I" has no attribute "__enter__"  [attr-defined]
+ rich/progress.py:287: error: "_I" has no attribute "__exit__"  [attr-defined]

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/mixology/term.py:130: error: "object" has no attribute "constraint"  [attr-defined]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:33: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:34: error: Access to generic instance variables via class is ambiguous

graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/pyutils/frozen_list.py:28: error: Value of type variable "Self" of "__add__" of "list" cannot be "FrozenList[T]"
+ src/graphql/pyutils/frozen_list.py:34: error: Value of type variable "Self" of "__mul__" of "list" cannot be "FrozenList[T]"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "k"  [var-annotated]
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "v"  [var-annotated]

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2535: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3489: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
- python/pyspark/sql/pandas/map_ops.py:329: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:255: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:256: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:333: error: Name "DataFrameLike" is not defined  [name-defined]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/streaming/dstream.py:899: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ python/pyspark/streaming/dstream.py:899: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/pandas/frame.py:12604: error: Incompatible return value type (got "Tuple[object, Union[DataFrame[Any], Series[Any]]]", expected "Tuple[DataFrame[Any], Union[DataFrame[Any], Series[Any]]]")  [return-value]
+ python/pyspark/pandas/series.py:6612: error: Incompatible return value type (got "Tuple[object, Union[DataFrame[Any], Series[Any]]]", expected "Tuple[Series[Any], Union[DataFrame[Any], Series[Any]]]")  [return-value]
+ python/pyspark/pandas/namespace.py:2605: error: Need type annotation for "interested_columns" (hint: "interested_columns: Set[<type>] = ...")  [var-annotated]
+ python/pyspark/pandas/namespace.py:2605: error: Value of type variable "Self" of "intersection" of "set" cannot be "Set[Tuple[Any, ...]]"  [type-var]
+ python/pyspark/streaming/context.py:258: error: Access to generic instance variables via class is ambiguous  [misc]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/iostream.py:1321: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/iostream.py:1445: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/websocket.py:1484: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[str]]"  [arg-type]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[bytes]]"  [arg-type]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "str")  [return-value]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "bytes")  [return-value]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[str, str]")  [return-value]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[bytes, bytes]")  [return-value]
+ src/_pytest/logging.py:777: error: No overload variant of "__init__" of "StreamHandler" matches argument type "TerminalReporter"  [call-overload]
+ src/_pytest/logging.py:777: note: Error code "call-overload" not covered by "type: ignore" comment
+ src/_pytest/logging.py:777: note: Possible overload variants:
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: None = ...) -> None
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: StringIO) -> None

jax (https://github.com/google/jax)
+ jax/core.py:119: error: Value of type variable "Self" of "union" of "set" cannot be "Set[Hashable]"  [type-var]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "argnames"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "argnames"
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "args"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "args"
- ibis/expr/types/relations.py:557: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Sequence[Union[Value, str]]]"
+ ibis/expr/types/relations.py:557: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Sequence[Union[Value, str]]]"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "argnames"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "argnames"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "args"
- ibis/expr/datatypes/core.py:128: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:128: error: "Self" has no attribute "args"
- ibis/backends/base/__init__.py:398: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:398: error: "Type[Self]" has no attribute "Options"
- ibis/backends/base/__init__.py:415: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:415: error: "Self" has no attribute "compiler"
- ibis/backends/base/__init__.py:457: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:457: error: "Self" has no attribute "compiler"
- ibis/expr/types/temporal.py:187: error: "_TimeComponentMixin" has no attribute "op"
+ ibis/expr/types/temporal.py:187: error: "Self" has no attribute "op"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping
- ibis/expr/operations/reductions.py:276: error: "ibis.expr.operations.reductions.Any" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:276: error: "Self" has no attribute "args"
- ibis/expr/operations/reductions.py:286: error: "NotAny" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:286: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:189: error: "ExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:189: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:201: error: "NotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:201: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:258: error: "UnresolvedExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:258: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:268: error: "UnresolvedNotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:268: error: "Self" has no attribute "args"
- ibis/backends/tests/test_generic.py:100: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_generic.py:100: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/postgres/tests/test_geospatial.py:199: error: Argument 1 has incompatible type "int"; expected "NumericValue"
- ibis/backends/postgres/tests/test_functions.py:430: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/postgres/tests/test_geospatial.py:199: error: Value of type variable "Self" of function cannot be "int"
+ ibis/backends/postgres/tests/test_functions.py:430: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/clickhouse/tests/test_functions.py:152: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/clickhouse/tests/test_functions.py:152: error: Value of type variable "Self" of function cannot be "int"
- ibis/tests/expr/test_value_exprs.py:1383: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/tests/expr/test_value_exprs.py:1383: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/base/sql/__init__.py:194: error: "BaseSQLBackend" has no attribute "expr"
+ ibis/backends/base/sql/__init__.py:194: error: "Self" has no attribute "expr"
- ibis/backends/base/sql/__init__.py:263: error: "BaseSQLBackend" has no attribute "_get_list"
+ ibis/backends/base/sql/__init__.py:263: error: "Self" has no attribute "_get_list"
- ibis/backends/base/sql/alchemy/__init__.py:346: error: "BaseAlchemyBackend" has no attribute "database_name"
+ ibis/backends/base/sql/alchemy/__init__.py:346: error: "Self" has no attribute "database_name"
- ibis/backends/tests/test_numeric.py:316: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_numeric.py:315: error: Value of type variable "Self" of function cannot be "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/setup_command.py:105:26: error: "BuildDoc" has no attribute "distribution"  [attr-defined]
+ sphinx/setup_command.py:105:26: error: "Self" has no attribute "distribution"  [attr-defined]
- sphinx/setup_command.py:147:16: error: "BuildDoc" has no attribute "verbose"  [attr-defined]
+ sphinx/setup_command.py:147:16: error: "Self" has no attribute "verbose"  [attr-defined]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:503: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:503: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:910: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:910: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:445: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:445: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:457: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:464: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:582: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:582: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:586: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:586: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/__init__.py:61: error: "MsgBase[M]" has no attribute "skip"  [attr-defined]
+ steam/protobufs/__init__.py:61: error: "Self" has no attribute "skip"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:174: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:189: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:624: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:632: error: Self? has no attribute "created_at"  [attr-defined]
- steam/role.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:284: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/trade.py:290: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:290: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:331: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:331: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:570: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:570: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:579: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:579: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/package.py:147: error: Unsupported left operand type for & (Self?)  [operator]
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:562: error: "BaseUser" has no attribute "_level"; maybe "level"?  [attr-defined]
+ steam/abc.py:562: error: "Self" has no attribute "_level"  [attr-defined]
- steam/abc.py:636: error: "BaseUser" has no attribute "is_friend"  [attr-defined]
+ steam/abc.py:636: error: "Self" has no attribute "is_friend"  [attr-defined]
- steam/abc.py:985: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:985: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:1012: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:1012: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/user.py:177: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:177: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:177: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:177: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:324: error: Incompatible types in assignment (expression has type "List[User]", base class "BaseUser" defined the type as "Callable[[BaseUser], Coroutine[Any, Any, List[User]]]")  [assignment]
+ steam/user.py:324: error: Incompatible types in assignment (expression has type "List[User]", base class "BaseUser" defined the type as "Callable[[Self], Coroutine[Any, Any, List[User]]]")  [assignment]
- steam/user.py:332: error: "ClientUser" has no attribute "has_setup_profile"; maybe "setup_profile"?  [attr-defined]
+ steam/user.py:332: error: "Self" has no attribute "has_setup_profile"  [attr-defined]
- steam/game_server.py:238: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:238: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:239: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:239: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:240: error: "Query[T_co]" has no attribute "_callback"  [attr-defined]
+ steam/game_server.py:240: error: "Self" has no attribute "_callback"  [attr-defined]
- steam/game_server.py:250: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:250: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:268: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:268: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:274: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:274: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:275: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:275: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:278: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:278: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:287: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Tuple[object, ...], Any, SupportsIndex, SupportsIndex], int]")  [assignment]
+ steam/game_server.py:287: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Self, Any, SupportsIndex, SupportsIndex], int]")  [assignment]
- steam/game_server.py:341: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/game_server.py:341: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid a

... (truncated 176 lines) ...

github-actions[bot] avatar Jul 17 '22 19:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pegen (https://github.com/we-like-parsers/pegen)
+ src/pegen/sccutils.py:89: error: Value of type variable "Self" of "union" of "set" cannot be "Set[AbstractSet[str]]"  [type-var]

graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/pyutils/frozen_list.py:28: error: Value of type variable "Self" of "__add__" of "list" cannot be "FrozenList[T]"
+ src/graphql/pyutils/frozen_list.py:34: error: Value of type variable "Self" of "__mul__" of "list" cannot be "FrozenList[T]"

boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/path.py:101: error: Incompatible return value type (got "object", expected "LocalPath")
+ boostedblob/path.py:166: error: Incompatible return value type (got "object", expected "AzurePath")
+ boostedblob/path.py:223: error: Incompatible return value type (got "object", expected "GooglePath")

psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/server_cursor.py:237: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ psycopg/psycopg/server_cursor.py:379: error: Value of type variable "Self" of "__init__" of "ServerCursorMixin" cannot be "Self"  [type-var]
+ tests/test_psycopg_dbapi20.py:43: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:43: note: Error code "misc" not covered by "type: ignore" comment
+ tests/test_psycopg_dbapi20.py:44: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:44: note: Error code "misc" not covered by "type: ignore" comment

mypy (https://github.com/python/mypy)
+ mypy/build.py:3331: error: Value of type variable "Self" of "union" of "set" cannot be "Set[T]"  [type-var]

paasta (https://github.com/yelp/paasta)
+ paasta_tools/bounce_lib.py:346: error: Value of type variable "Self" of "union" of "set" cannot be "Set[<nothing>]"

rich (https://github.com/willmcgugan/rich)
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "TextIO", variable has type "_I")  [assignment]
+ rich/progress.py:274: error: Incompatible types in assignment (expression has type "BinaryIO", variable has type "_I")  [assignment]
+ rich/progress.py:278: error: Returning Any from function declared to return "TextIO"  [no-any-return]
+ rich/progress.py:278: error: Returning Any from function declared to return "BinaryIO"  [no-any-return]
+ rich/progress.py:278: error: "_I" has no attribute "__enter__"  [attr-defined]
+ rich/progress.py:287: error: "_I" has no attribute "__exit__"  [attr-defined]

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/mixology/term.py:130: error: "object" has no attribute "constraint"  [attr-defined]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:33: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:34: error: Access to generic instance variables via class is ambiguous

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ src/anyio/_core/_fileio.py:133: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2535: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3489: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
- python/pyspark/sql/pandas/map_ops.py:329: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:255: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:256: error: Name "DataFrameLike" is not defined  [name-defined]
- python/pyspark/sql/pandas/group_ops.py:333: error: Name "DataFrameLike" is not defined  [name-defined]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/streaming/dstream.py:899: error: Overloaded function implementation cannot satisfy signature 1 due to inconsistencies in how they use type variables  [misc]
+ python/pyspark/streaming/dstream.py:899: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/pandas/frame.py:12604: error: Incompatible return value type (got "Tuple[object, Union[DataFrame[Any], Series[Any]]]", expected "Tuple[DataFrame[Any], Union[DataFrame[Any], Series[Any]]]")  [return-value]
+ python/pyspark/pandas/series.py:6612: error: Incompatible return value type (got "Tuple[object, Union[DataFrame[Any], Series[Any]]]", expected "Tuple[Series[Any], Union[DataFrame[Any], Series[Any]]]")  [return-value]
+ python/pyspark/pandas/namespace.py:2605: error: Need type annotation for "interested_columns" (hint: "interested_columns: Set[<type>] = ...")  [var-annotated]
+ python/pyspark/pandas/namespace.py:2605: error: Value of type variable "Self" of "intersection" of "set" cannot be "Set[Tuple[Any, ...]]"  [type-var]
+ python/pyspark/streaming/context.py:258: error: Access to generic instance variables via class is ambiguous  [misc]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/iostream.py:1321: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/iostream.py:1445: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/websocket.py:1484: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[str]]"  [arg-type]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[bytes]]"  [arg-type]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "str")  [return-value]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "bytes")  [return-value]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[str, str]")  [return-value]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[bytes, bytes]")  [return-value]
+ src/_pytest/logging.py:777: error: No overload variant of "__init__" of "StreamHandler" matches argument type "TerminalReporter"  [call-overload]
+ src/_pytest/logging.py:777: note: Error code "call-overload" not covered by "type: ignore" comment
+ src/_pytest/logging.py:777: note: Possible overload variants:
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: None = ...) -> None
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: StringIO) -> None

jax (https://github.com/google/jax)
+ jax/core.py:119: error: Value of type variable "Self" of "union" of "set" cannot be "Set[Hashable]"  [type-var]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "argnames"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "argnames"
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "args"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "args"
- ibis/expr/types/relations.py:572: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Sequence[Union[Value, str]]]"
+ ibis/expr/types/relations.py:572: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Sequence[Union[Value, str]]]"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "argnames"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "argnames"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "args"
- ibis/expr/datatypes/core.py:128: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:128: error: "Self" has no attribute "args"
- ibis/backends/base/__init__.py:471: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:471: error: "Type[Self]" has no attribute "Options"
- ibis/backends/base/__init__.py:488: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:488: error: "Self" has no attribute "compiler"
- ibis/backends/base/__init__.py:530: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:530: error: "Self" has no attribute "compiler"
- ibis/expr/types/temporal.py:187: error: "_TimeComponentMixin" has no attribute "op"
+ ibis/expr/types/temporal.py:187: error: "Self" has no attribute "op"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping
- ibis/expr/operations/reductions.py:276: error: "ibis.expr.operations.reductions.Any" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:276: error: "Self" has no attribute "args"
- ibis/expr/operations/reductions.py:286: error: "NotAny" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:286: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:189: error: "ExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:189: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:201: error: "NotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:201: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:258: error: "UnresolvedExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:258: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:268: error: "UnresolvedNotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:268: error: "Self" has no attribute "args"
- ibis/backends/tests/test_generic.py:100: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_generic.py:100: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/postgres/tests/test_geospatial.py:199: error: Argument 1 has incompatible type "int"; expected "NumericValue"
- ibis/backends/postgres/tests/test_functions.py:430: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/postgres/tests/test_geospatial.py:199: error: Value of type variable "Self" of function cannot be "int"
+ ibis/backends/postgres/tests/test_functions.py:430: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/clickhouse/tests/test_functions.py:152: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/clickhouse/tests/test_functions.py:152: error: Value of type variable "Self" of function cannot be "int"
- ibis/tests/expr/test_value_exprs.py:1383: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/tests/expr/test_value_exprs.py:1383: error: Value of type variable "Self" of function cannot be "int"
- ibis/backends/base/sql/__init__.py:194: error: "BaseSQLBackend" has no attribute "expr"
+ ibis/backends/base/sql/__init__.py:194: error: "Self" has no attribute "expr"
- ibis/backends/base/sql/__init__.py:263: error: "BaseSQLBackend" has no attribute "_get_list"
+ ibis/backends/base/sql/__init__.py:263: error: "Self" has no attribute "_get_list"
- ibis/backends/base/sql/alchemy/__init__.py:346: error: "BaseAlchemyBackend" has no attribute "database_name"
+ ibis/backends/base/sql/alchemy/__init__.py:346: error: "Self" has no attribute "database_name"
- ibis/backends/tests/test_numeric.py:316: error: Argument 1 has incompatible type "int"; expected "Value"
+ ibis/backends/tests/test_numeric.py:315: error: Value of type variable "Self" of function cannot be "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/setup_command.py:105:26: error: "BuildDoc" has no attribute "distribution"  [attr-defined]
+ sphinx/setup_command.py:105:26: error: "Self" has no attribute "distribution"  [attr-defined]
- sphinx/setup_command.py:147:16: error: "BuildDoc" has no attribute "verbose"  [attr-defined]
+ sphinx/setup_command.py:147:16: error: "Self" has no attribute "verbose"  [attr-defined]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:503: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:503: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:910: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:910: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:445: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:445: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:457: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:464: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:582: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:582: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:586: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:586: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/__init__.py:61: error: "MsgBase[M]" has no attribute "skip"  [attr-defined]
+ steam/protobufs/__init__.py:61: error: "Self" has no attribute "skip"  [attr-defined]
- steam/iterators.py:174: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:189: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:627: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:635: error: Self? has no attribute "created_at"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/role.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:284: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/trade.py:290: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:290: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:331: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:331: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:570: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:570: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:579: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:579: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/package.py:147: error: Unsupported left operand type for & (Self?)  [operator]
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:562: error: "BaseUser" has no attribute "_level"; maybe "level"?  [attr-defined]
+ steam/abc.py:562: error: "Self" has no attribute "_level"  [attr-defined]
- steam/abc.py:622: error: "BaseUser" has no attribute "is_friend"  [attr-defined]
+ steam/abc.py:622: error: "Self" has no attribute "is_friend"  [attr-defined]
- steam/abc.py:708: error: Argument 3 to "_from_proto" of "Review" has incompatible type "BaseUser"; expected "User"  [arg-type]
+ steam/abc.py:708: error: Argument 3 to "_from_proto" of "Review" has incompatible type "Self"; expected "User"  [arg-type]
- steam/abc.py:971: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:971: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:998: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:998: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:236: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:636: error: Trying to assign name "sha" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:637: error: Trying to assign name "size" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:638: error: Trying to assign name "change_number" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:311: error: "ClientUser" has no attribute "has_setup_profile"; maybe "setup_profile"?  [attr-defined]
+ steam/user.py:311: error: "Self" has no attribute "has_setup_profile"  [attr-defined]
- steam/game_server.py:238: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:238: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:239: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:239: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:240: error: "Query[T_co]" has no attribute "_callback"  [attr-defined]
+ steam/game_server.py:240: error: "Self" has no attribute "_callback"  [attr-defined]
- steam/game_server.py:250: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:250: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:268: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:268: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:274: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:274: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:275: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:275: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.

... (truncated 3765 lines) ...

github-actions[bot] avatar Jul 21 '22 19:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/path.py:101: error: Incompatible return value type (got "object", expected "LocalPath")  [return-value]
+ boostedblob/path.py:166: error: Incompatible return value type (got "object", expected "AzurePath")  [return-value]
+ boostedblob/path.py:223: error: Incompatible return value type (got "object", expected "GooglePath")  [return-value]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:33: error: Access to generic instance variables via class is ambiguous
+ rotkehlchen/constants/ethereum.py:34: error: Access to generic instance variables via class is ambiguous

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/mixology/term.py:130: error: "object" has no attribute "constraint"  [attr-defined]

psycopg (https://github.com/psycopg/psycopg)
+ tests/test_psycopg_dbapi20.py:43: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:43: note: Error code "misc" not covered by "type: ignore" comment
+ tests/test_psycopg_dbapi20.py:44: error: Access to generic instance variables via class is ambiguous  [misc]
+ tests/test_psycopg_dbapi20.py:44: note: Error code "misc" not covered by "type: ignore" comment

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/iostream.py:1321: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/iostream.py:1445: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"
+ tornado/websocket.py:1484: error: Cannot infer type argument 1 of "future_set_result_unless_cancelled"

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "k"  [var-annotated]
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "v"  [var-annotated]

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:481: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:482: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[str]]"  [arg-type]
+ src/_pytest/capture.py:488: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[bytes]]"  [arg-type]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "str")  [return-value]
+ src/_pytest/capture.py:491: error: Incompatible return value type (got "AnyStr", expected "bytes")  [return-value]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:497: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[str, str]")  [return-value]
+ src/_pytest/capture.py:557: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[bytes, bytes]")  [return-value]
+ src/_pytest/logging.py:777: error: No overload variant of "__init__" of "StreamHandler" matches argument type "TerminalReporter"  [call-overload]
+ src/_pytest/logging.py:777: note: Error code "call-overload" not covered by "type: ignore" comment
+ src/_pytest/logging.py:777: note: Possible overload variants:
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: None = ...) -> None
+ src/_pytest/logging.py:777: note:     def __init__(self, stream: StringIO) -> None

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/exceptions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:216: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[Self], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[Self], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:428: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:428: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:639: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:639: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:44: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:78: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"
- src/prefect/client.py:227: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/client.py:227: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client.py:259: error: Self? has no attribute "status_code"
- src/prefect/client.py:265: error: Self? has no attribute "headers"
- src/prefect/client.py:278: error: Self? has no attribute "raise_for_status"
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/setup_command.py:105:26: error: "BuildDoc" has no attribute "distribution"  [attr-defined]
+ sphinx/setup_command.py:105:26: error: "Self" has no attribute "distribution"  [attr-defined]
- sphinx/setup_command.py:147:16: error: "BuildDoc" has no attribute "verbose"  [attr-defined]
+ sphinx/setup_command.py:147:16: error: "Self" has no attribute "verbose"  [attr-defined]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "argnames"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "argnames"
- ibis/common/grounds.py:190: error: "Annotable" has no attribute "args"
+ ibis/common/grounds.py:190: error: "Self" has no attribute "args"
- ibis/expr/types/relations.py:575: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Sequence[Union[Value, str]]]"
+ ibis/expr/types/relations.py:575: error: Argument 1 has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Sequence[Union[Value, str]]]"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "argnames"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "argnames"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "args"
- ibis/expr/datatypes/core.py:128: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:128: error: "Self" has no attribute "args"
- ibis/backends/base/__init__.py:471: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:471: error: "Type[Self]" has no attribute "Options"
- ibis/backends/base/__init__.py:488: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:488: error: "Self" has no attribute "compiler"
- ibis/backends/base/__init__.py:530: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:530: error: "Self" has no attribute "compiler"
- ibis/expr/types/temporal.py:187: error: "_TimeComponentMixin" has no attribute "op"
+ ibis/expr/types/temporal.py:187: error: "Self" has no attribute "op"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping
- ibis/expr/operations/reductions.py:276: error: "ibis.expr.operations.reductions.Any" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:276: error: "Self" has no attribute "args"
- ibis/expr/operations/reductions.py:286: error: "NotAny" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:286: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:189: error: "ExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:189: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:201: error: "NotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:201: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:258: error: "UnresolvedExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:258: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:268: error: "UnresolvedNotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:268: error: "Self" has no attribute "args"
- ibis/backends/tests/test_generic.py:100: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/postgres/tests/test_geospatial.py:199: error: Argument 1 has incompatible type "int"; expected "NumericValue"
- ibis/backends/postgres/tests/test_functions.py:405: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/clickhouse/tests/test_functions.py:152: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/tests/expr/test_value_exprs.py:1383: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/base/sql/__init__.py:194: error: "BaseSQLBackend" has no attribute "expr"
+ ibis/backends/base/sql/__init__.py:194: error: "Self" has no attribute "expr"
- ibis/backends/base/sql/__init__.py:263: error: "BaseSQLBackend" has no attribute "_get_list"
+ ibis/backends/base/sql/__init__.py:263: error: "Self" has no attribute "_get_list"
- ibis/backends/base/sql/alchemy/__init__.py:346: error: "BaseAlchemyBackend" has no attribute "database_name"
+ ibis/backends/base/sql/alchemy/__init__.py:346: error: "Self" has no attribute "database_name"
- ibis/backends/tests/test_numeric.py:316: error: Argument 1 has incompatible type "int"; expected "Value"

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:503: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:503: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:910: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:910: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:445: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:445: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:457: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:464: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:598: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:598: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:602: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:602: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/__init__.py:61: error: "MsgBase[M]" has no attribute "skip"  [attr-defined]
+ steam/protobufs/__init__.py:61: error: "Self" has no attribute "skip"  [attr-defined]
- steam/iterators.py:174: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:189: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:629: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:637: error: Self? has no attribute "created_at"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/role.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:284: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/game.py:866: note:          def packages(self, *, language: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:866: note:          def packages(self, *, language: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/game.py:866: note:          def packages(self, *, languages: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:866: note:          def packages(self, *, languages: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/trade.py:294: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:294: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:335: error: "BaseInventory[ItemT_co]" has no attribute "__orig_class__"  [attr-defined]
+ steam/trade.py:335: error: "Self" has no attribute "__orig_class__"  [attr-defined]
- steam/trade.py:576: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:576: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:585: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:585: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/package.py:227: error: Unsupported left operand type for & (Self?)  [operator]
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:564: error: "BaseUser" has no attribute "_level"; maybe "level"?  [attr-defined]
+ steam/abc.py:564: error: "Self" has no attribute "_level"  [attr-defined]
- steam/abc.py:641: error: "BaseUser" has no attribute "is_friend"  [attr-defined]
+ steam/abc.py:641: error: "Self" has no attribute "is_friend"  [attr-defined]
- steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "BaseUser"; expected "User"  [arg-type]
+ steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "Self"; expected "User"  [arg-type]
- steam/abc.py:993: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:993: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:1020: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:1020: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:236: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:636: error: Trying to assign name "sha" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:637: error: Trying to assign name "size" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:638: error: Trying to assign name "change_number" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:311: error: "ClientUser" has no attribute "has_setup_profile"; maybe "setup_profile"?  [attr-defined]
+ steam/user.py:311: error: "Self" has no attribute "has_setup_profile"  [attr-defined]
- steam/game_server.py:238: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:238: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:239: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:239: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:240: error: "Query[T_co]" has no attribute "_callback"  [attr-defined]
+ steam/game_server.py:240: error: "Self" has no attribute "_callback"  [attr-defined]
- steam/game_server.py:250: error: "Query[T_co]" has no attribute "_type"  [attr-defined]
+ steam/game_server.py:250: error: "Self" has no attribute "_type"  [attr-defined]
- steam/game_server.py:268: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:268: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:274: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:274: error: "Self" has no attribute "_raw"  [attr-defined]
- steam/game_server.py:275: error: "Query[T_co]" has no attribute "_raw"  [attr-defined]
+ steam/game_server.py:275: error: "Self" has no attribute "_raw"  [at

... (truncated 3750 lines) ...

github-actions[bot] avatar Jul 30 '22 15:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/path.py:101: error: Incompatible return value type (got "object", expected "LocalPath")  [return-value]
+ boostedblob/path.py:166: error: Incompatible return value type (got "object", expected "AzurePath")  [return-value]
+ boostedblob/path.py:223: error: Incompatible return value type (got "object", expected "GooglePath")  [return-value]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.79169df91d7a51bcb19d5b1963de03e103dbc832
+ rotkehlchen/constants/ethereum.py:32: : note: use --pdb to drop into pdb
- rotkehlchen/chain/ethereum/contracts.py:105: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:251: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:252: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:253: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/adex.py:786: error: Unused "type: ignore" comment
- rotkehlchen/serialization/serialize.py:97: error: Statement is unreachable
- rotkehlchen/serialization/serialize.py:219: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:131: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:587: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:869: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:891: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:1048: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:95: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:114: error: Unused "type: ignore" comment
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2883, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3267, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3368, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2312, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1116, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2048, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1191, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2425, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 803, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 932, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 936, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1005, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1191, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2425, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1269, in accept
+     return visitor.visit_assignment_stmt(self)
+   File "/checker.py", line 2472, in visit_assignment_stmt
+     self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+   File "/checker.py", line 2548, in check_assignment
+     lvalue_type, index_lvalue, inferred = self.check_lvalue(lvalue)
+   File "/checker.py", line 3480, in check_lvalue
+     lvalue_type = self.expr_checker.analyze_ordinary_member_access(lvalue, True)
+   File "/checkexpr.py", line 2463, in analyze_ordinary_member_access
+     original_type = self.accept(e.expr)
+   File "/checkexpr.py", line 4442, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 1734, in accept
+     return visitor.visit_member_expr(self)
+   File "/checkexpr.py", line 2453, in visit_member_expr
+     result = self.analyze_ordinary_member_access(e, is_lvalue)
+   File "/checkexpr.py", line 2470, in analyze_ordinary_member_access
+     member_type = analyze_member_access(
+   File "/checkmember.py", line 187, in analyze_member_access
+     result = _analyze_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 213, in _analyze_member_access
+     return analyze_type_callable_member_access(name, typ, mx)
+   File "/checkmember.py", line 350, in analyze_type_callable_member_access
+     result = analyze_class_attribute_access(
+   File "/checkmember.py", line 915, in analyze_class_attribute_access
+     return make_simplified_union(t.items + [mx.named_type(info.fullname)])
+   File "/checkmember.py", line 105, in named_type
+     return self.chk.named_type(name)
+   File "/checker.py", line 5690, in named_type
+     sym = self.lookup_qualified(name)
+   File "/checker.py", line 5795, in lookup_qualified
+     assert sym is not None, "Internal error: attempted lookup of unknown name"
+ AssertionError: Internal error: attempted lookup of unknown name
- rotkehlchen/api/v1/fields.py:69: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:150: error: Untyped decorator makes function "make_balance_entry" untyped
- rotkehlchen/api/v1/schemas.py:192: error: Untyped decorator makes function "validate_ethtx_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:211: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/api/v1/schemas.py:249: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:280: error: Untyped decorator makes function "validate_trades_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:301: error: Untyped decorator makes function "make_trades_query" untyped
- rotkehlchen/api/v1/schemas.py:360: error: Untyped decorator makes function "make_staking_query" untyped
- rotkehlchen/api/v1/schemas.py:441: error: Untyped decorator makes function "validate_history_entry_schema" untyped
- rotkehlchen/api/v1/schemas.py:457: error: Untyped decorator makes function "make_history_base_entry" untyped
- rotkehlchen/api/v1/schemas.py:487: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:507: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:556: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:576: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:619: error: Untyped decorator makes function "validate_trade" untyped
- rotkehlchen/api/v1/schemas.py:658: error: Untyped decorator makes function "validate_ledger_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:670: error: Untyped decorator makes function "make_ledger_action" untyped
- rotkehlchen/api/v1/schemas.py:695: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:708: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:747: error: Untyped decorator makes function "validate_tag_schema" untyped
- rotkehlchen/api/v1/schemas.py:802: error: Untyped decorator makes function "make_exchange_location_id" untyped
- rotkehlchen/api/v1/schemas.py:889: error: Untyped decorator makes function "validate_settings_schema" untyped
- rotkehlchen/api/v1/schemas.py:903: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:958: error: Untyped decorator makes function "validate_user_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:1009: error: Untyped decorator makes function "make_external_service" untyped
- rotkehlchen/api/v1/schemas.py:1102: error: Untyped decorator makes function "validate_accounting_reports_schema" untyped
- rotkehlchen/api/v1/schemas.py:1118: error: Untyped decorator makes function "validate_report_schema" untyped
- rotkehlchen/api/v1/schemas.py:1131: error: Untyped decorator makes function "make_report_data_query" untyped
- rotkehlchen/api/v1/schemas.py:1163: error: Untyped decorator makes function "validate_blockchain_account_schema" untyped
- rotkehlchen/api/v1/schemas.py:1198: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1490: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1498: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1547: error: Untyped decorator makes function "validate_blockchain_accounts_delete_schema" untyped
- rotkehlchen/api/v1/schemas.py:1555: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1653: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1694: error: Untyped decorator makes function "validate_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1725: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1753: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1757: error: Untyped decorator makes function "validate_modify_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1764: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1792: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1868: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1974: error: Untyped decorator makes function "validate_eth2_validator_schema" untyped
- rotkehlchen/api/v1/schemas.py:2000: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:2043: error: Untyped decorator makes function "validate_eth2_daily_stats_schema" untyped
- rotkehlchen/api/v1/schemas.py:2074: error: Untyped decorator makes function "make_eth2_daily_stats_query" untyped
- rotkehlchen/api/v1/schemas.py:2123: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2165: error: Untyped decorator makes function "make_addressbook_entry" untyped
- rotkehlchen/api/v1/schemas.py:2190: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2212: error: Untyped decorator makes function "make_balance" untyped
- rotkehlchen/api/v1/schemas.py:2232: error: Untyped decorator makes function "make_location_data" untyped
- rotkehlchen/api/v1/schemas.py:2258: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2295: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2317: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/serialization/schemas.py:31: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/resources.py:193: error: Untyped decorator makes function "load_json_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:196: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:205: error: Untyped decorator makes function "load_json_query_data" untyped
- rotkehlchen/api/v1/resources.py:211: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:214: error: Untyped decorator makes function "load_json_query_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:217: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:221: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:230: error: Untyped decorator makes function "load_form_file_data" untyped
- rotkehlchen/api/v1/resources.py:233: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:234: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:239: error: Untyped decorator makes function "load_view_args_file_data" untyped
- rotkehlchen/api/v1/resources.py:242: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:243: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:323: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:340: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:349: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:366: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:390: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:416: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:426: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:442: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:458: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:481: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:497: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:518: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:541: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:556: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:564: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:574: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:595: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:623: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:632: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:659: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:663: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:668: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:684: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:700: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:705: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:709: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:714: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:725: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:730: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:740: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:750: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:772: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:777: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:782: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:787: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:809: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:823: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:853: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:885: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:900: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:925: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:941: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:957: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:976: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:990: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:998: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1003: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1015: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1020: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1025: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1037: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1062: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1079: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1097: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1121: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1130: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1140: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1159: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1191: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1210: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1227: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1235: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1255: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1260: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1270: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1280: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1319: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1324: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1345: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1364: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1385: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1407: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1427: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1457: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1462: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1466: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1477: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1482: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1487: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1504: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1509: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1518: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1534: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1550: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1570: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1595: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1611: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1616: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1629: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1639: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1649: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1658: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1680: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1690: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1700: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1710: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1720: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1730: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1751: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1761: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1782: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1792: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1813: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1823: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1833: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1854: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1875: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1885: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1906: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1916: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1937: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1947: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1968: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1989: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1998: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2008: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2029: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2050: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2059: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2069: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2079: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2100: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2127: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2132: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2137: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2148: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2159: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2163: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2173: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2189: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2203: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2219: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2233: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2246: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2261: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2276: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2280: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2297: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2302: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2319: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2344: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2353: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2362: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2371: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2391: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2400: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2409: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2424: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2445: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2457: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2474: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2501: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2509: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2529: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2543: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2552: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2576: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2588: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2593: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2598: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2607: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2616: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/server.py:335: error: Untyped decorator makes function "handle_request_parsing_error" untyped
- rotkehlchen/api/server.py:336: error: Untyped decorator makes function "handle_request_parsing_error" untyped

poetry (https://github.com/python-poetry/poetry)
- Warning: unused section(s) in pyproject.toml: module = ['xattr.*']
+ src/poetry/utils/shell.py:69: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.79169df91d7a51bcb19d5b1963de03e103dbc832
+ src/poetry/utils/shell.py:69: : note: use --pdb to drop into pdb
+ src/poetry/mixology/term.py:130: error: "object" has no attribute "constraint"  [attr-defined]
- src/poetry/console/commands/show.py:392: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
- src/poetry/console/commands/show.py:441: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())


... (truncated 4851 lines) ...

github-actions[bot] avatar Aug 01 '22 12:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.4bc3778a5f1990936a28efeb92682fff91096cf1
+ rotkehlchen/constants/ethereum.py:32: : note: use --pdb to drop into pdb
- rotkehlchen/chain/ethereum/contracts.py:105: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:251: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:252: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:253: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/adex.py:786: error: Unused "type: ignore" comment
- rotkehlchen/serialization/serialize.py:97: error: Statement is unreachable
- rotkehlchen/serialization/serialize.py:219: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:131: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:587: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:869: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:891: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:1048: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:95: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:114: error: Unused "type: ignore" comment
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2883, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3267, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3368, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2312, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1116, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2048, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1191, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2425, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 803, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 932, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 936, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1005, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1191, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2425, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1269, in accept
+     return visitor.visit_assignment_stmt(self)
+   File "/checker.py", line 2472, in visit_assignment_stmt
+     self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+   File "/checker.py", line 2548, in check_assignment
+     lvalue_type, index_lvalue, inferred = self.check_lvalue(lvalue)
+   File "/checker.py", line 3480, in check_lvalue
+     lvalue_type = self.expr_checker.analyze_ordinary_member_access(lvalue, True)
+   File "/checkexpr.py", line 2463, in analyze_ordinary_member_access
+     original_type = self.accept(e.expr)
+   File "/checkexpr.py", line 4442, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 1734, in accept
+     return visitor.visit_member_expr(self)
+   File "/checkexpr.py", line 2453, in visit_member_expr
+     result = self.analyze_ordinary_member_access(e, is_lvalue)
+   File "/checkexpr.py", line 2470, in analyze_ordinary_member_access
+     member_type = analyze_member_access(
+   File "/checkmember.py", line 187, in analyze_member_access
+     result = _analyze_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 213, in _analyze_member_access
+     return analyze_type_callable_member_access(name, typ, mx)
+   File "/checkmember.py", line 350, in analyze_type_callable_member_access
+     result = analyze_class_attribute_access(
+   File "/checkmember.py", line 915, in analyze_class_attribute_access
+     return make_simplified_union(t.items + [mx.named_type(info.fullname)])
+   File "/checkmember.py", line 105, in named_type
+     return self.chk.named_type(name)
+   File "/checker.py", line 5690, in named_type
+     sym = self.lookup_qualified(name)
+   File "/checker.py", line 5795, in lookup_qualified
+     assert sym is not None, f"Internal error: attempted lookup of unknown name {name!r}"
+ AssertionError: Internal error: attempted lookup of unknown name 'rotkehlchen.constants.ethereum.EthereumConstants'
- rotkehlchen/api/v1/fields.py:69: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:150: error: Untyped decorator makes function "make_balance_entry" untyped
- rotkehlchen/api/v1/schemas.py:192: error: Untyped decorator makes function "validate_ethtx_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:211: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/api/v1/schemas.py:249: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:280: error: Untyped decorator makes function "validate_trades_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:301: error: Untyped decorator makes function "make_trades_query" untyped
- rotkehlchen/api/v1/schemas.py:360: error: Untyped decorator makes function "make_staking_query" untyped
- rotkehlchen/api/v1/schemas.py:441: error: Untyped decorator makes function "validate_history_entry_schema" untyped
- rotkehlchen/api/v1/schemas.py:457: error: Untyped decorator makes function "make_history_base_entry" untyped
- rotkehlchen/api/v1/schemas.py:487: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:507: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:556: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:576: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:619: error: Untyped decorator makes function "validate_trade" untyped
- rotkehlchen/api/v1/schemas.py:658: error: Untyped decorator makes function "validate_ledger_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:670: error: Untyped decorator makes function "make_ledger_action" untyped
- rotkehlchen/api/v1/schemas.py:695: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:708: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:747: error: Untyped decorator makes function "validate_tag_schema" untyped
- rotkehlchen/api/v1/schemas.py:802: error: Untyped decorator makes function "make_exchange_location_id" untyped
- rotkehlchen/api/v1/schemas.py:889: error: Untyped decorator makes function "validate_settings_schema" untyped
- rotkehlchen/api/v1/schemas.py:903: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:958: error: Untyped decorator makes function "validate_user_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:1009: error: Untyped decorator makes function "make_external_service" untyped
- rotkehlchen/api/v1/schemas.py:1102: error: Untyped decorator makes function "validate_accounting_reports_schema" untyped
- rotkehlchen/api/v1/schemas.py:1118: error: Untyped decorator makes function "validate_report_schema" untyped
- rotkehlchen/api/v1/schemas.py:1131: error: Untyped decorator makes function "make_report_data_query" untyped
- rotkehlchen/api/v1/schemas.py:1163: error: Untyped decorator makes function "validate_blockchain_account_schema" untyped
- rotkehlchen/api/v1/schemas.py:1198: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1490: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1498: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1547: error: Untyped decorator makes function "validate_blockchain_accounts_delete_schema" untyped
- rotkehlchen/api/v1/schemas.py:1555: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1653: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1694: error: Untyped decorator makes function "validate_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1725: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1753: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1757: error: Untyped decorator makes function "validate_modify_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1764: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1792: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1868: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1974: error: Untyped decorator makes function "validate_eth2_validator_schema" untyped
- rotkehlchen/api/v1/schemas.py:2000: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:2043: error: Untyped decorator makes function "validate_eth2_daily_stats_schema" untyped
- rotkehlchen/api/v1/schemas.py:2074: error: Untyped decorator makes function "make_eth2_daily_stats_query" untyped
- rotkehlchen/api/v1/schemas.py:2123: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2165: error: Untyped decorator makes function "make_addressbook_entry" untyped
- rotkehlchen/api/v1/schemas.py:2190: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2212: error: Untyped decorator makes function "make_balance" untyped
- rotkehlchen/api/v1/schemas.py:2232: error: Untyped decorator makes function "make_location_data" untyped
- rotkehlchen/api/v1/schemas.py:2258: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2295: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2317: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/serialization/schemas.py:31: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/resources.py:193: error: Untyped decorator makes function "load_json_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:196: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:205: error: Untyped decorator makes function "load_json_query_data" untyped
- rotkehlchen/api/v1/resources.py:211: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:214: error: Untyped decorator makes function "load_json_query_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:217: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:221: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:230: error: Untyped decorator makes function "load_form_file_data" untyped
- rotkehlchen/api/v1/resources.py:233: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:234: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:239: error: Untyped decorator makes function "load_view_args_file_data" untyped
- rotkehlchen/api/v1/resources.py:242: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:243: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:323: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:340: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:349: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:366: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:390: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:416: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:426: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:442: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:458: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:481: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:497: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:518: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:541: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:556: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:564: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:574: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:595: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:623: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:632: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:659: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:663: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:668: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:684: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:700: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:705: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:709: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:714: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:725: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:730: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:740: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:750: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:772: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:777: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:782: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:787: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:809: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:823: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:853: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:885: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:900: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:925: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:941: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:957: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:976: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:990: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:998: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1003: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1015: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1020: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1025: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1037: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1062: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1079: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1097: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1121: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1130: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1140: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1159: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1191: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1210: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1227: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1235: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1255: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1260: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1270: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1280: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1319: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1324: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1345: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1364: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1385: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1407: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1427: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1457: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1462: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1466: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1477: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1482: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1487: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1504: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1509: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1518: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1534: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1550: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1570: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1595: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1611: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1616: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1629: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1639: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1649: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1658: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1680: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1690: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1700: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1710: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1720: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1730: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1751: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1761: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1782: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1792: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1813: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1823: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1833: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1854: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1875: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1885: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1906: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1916: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1937: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1947: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1968: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1989: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1998: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2008: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2029: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2050: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2059: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2069: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2079: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2100: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2127: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2132: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2137: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2148: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2159: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2163: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2173: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2189: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2203: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2219: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2233: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2246: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2261: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2276: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2280: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2297: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2302: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2319: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2344: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2353: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2362: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2371: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2391: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2400: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2409: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2424: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2445: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2457: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2474: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2501: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2509: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2529: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2543: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2552: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2576: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2588: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2593: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2598: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2607: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2616: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/server.py:335: error: Untyped decorator makes function "handle_request_parsing_error" untyped
- rotkehlchen/api/server.py:336: error: Untyped decorator makes function "handle_request_parsing_error" untyped

poetry (https://github.com/python-poetry/poetry)
- Warning: unused section(s) in pyproject.toml: module = ['xattr.*']
+ src/poetry/utils/shell.py:69: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.4bc3778a5f1990936a28efeb92682fff91096cf1
+ src/poetry/utils/shell.py:69: : note: use --pdb to drop into pdb
- src/poetry/console/commands/show.py:392: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
- src/poetry/console/commands/show.py:441: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _

... (truncated 4829 lines) ...

github-actions[bot] avatar Aug 01 '22 14:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.ed49ade9a7283cb5662cd4144fd59c6795c1c1c8
+ rotkehlchen/constants/ethereum.py:32: : note: use --pdb to drop into pdb
- rotkehlchen/chain/ethereum/contracts.py:105: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:251: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:252: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:253: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/adex.py:786: error: Unused "type: ignore" comment
- rotkehlchen/serialization/serialize.py:97: error: Statement is unreachable
- rotkehlchen/serialization/serialize.py:219: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:131: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:593: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:875: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:897: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:1054: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:95: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:114: error: Unused "type: ignore" comment
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2883, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3267, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3368, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2311, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1124, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2005, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2382, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 809, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 932, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 936, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1005, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2382, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1277, in accept
+     return visitor.visit_assignment_stmt(self)
+   File "/checker.py", line 2429, in visit_assignment_stmt
+     self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+   File "/checker.py", line 2505, in check_assignment
+     lvalue_type, index_lvalue, inferred = self.check_lvalue(lvalue)
+   File "/checker.py", line 3439, in check_lvalue
+     lvalue_type = self.expr_checker.analyze_ordinary_member_access(lvalue, True)
+   File "/checkexpr.py", line 2512, in analyze_ordinary_member_access
+     original_type = self.accept(e.expr)
+   File "/checkexpr.py", line 4474, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 1742, in accept
+     return visitor.visit_member_expr(self)
+   File "/checkexpr.py", line 2502, in visit_member_expr
+     result = self.analyze_ordinary_member_access(e, is_lvalue)
+   File "/checkexpr.py", line 2519, in analyze_ordinary_member_access
+     member_type = analyze_member_access(
+   File "/checkmember.py", line 187, in analyze_member_access
+     result = _analyze_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 213, in _analyze_member_access
+     return analyze_type_callable_member_access(name, typ, mx)
+   File "/checkmember.py", line 350, in analyze_type_callable_member_access
+     result = analyze_class_attribute_access(
+   File "/checkmember.py", line 915, in analyze_class_attribute_access
+     return make_simplified_union(t.items + [mx.named_type(info.fullname)])
+   File "/checkmember.py", line 105, in named_type
+     return self.chk.named_type(name)
+   File "/checker.py", line 5651, in named_type
+     sym = self.lookup_qualified(name)
+   File "/checker.py", line 5756, in lookup_qualified
+     assert sym is not None, f"Internal error: attempted lookup of unknown name {name!r}"
+ AssertionError: Internal error: attempted lookup of unknown name 'rotkehlchen.constants.ethereum.EthereumConstants'
- rotkehlchen/api/v1/fields.py:69: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:152: error: Untyped decorator makes function "make_balance_entry" untyped
- rotkehlchen/api/v1/schemas.py:179: error: Untyped decorator makes function "validate_order_by_schema" untyped
- rotkehlchen/api/v1/schemas.py:213: error: Untyped decorator makes function "validate_ethtx_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:239: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/api/v1/schemas.py:276: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:307: error: Untyped decorator makes function "validate_trades_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:335: error: Untyped decorator makes function "make_trades_query" untyped
- rotkehlchen/api/v1/schemas.py:393: error: Untyped decorator makes function "make_staking_query" untyped
- rotkehlchen/api/v1/schemas.py:479: error: Untyped decorator makes function "validate_history_entry_schema" untyped
- rotkehlchen/api/v1/schemas.py:495: error: Untyped decorator makes function "make_history_base_entry" untyped
- rotkehlchen/api/v1/schemas.py:525: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:552: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:600: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:627: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:669: error: Untyped decorator makes function "validate_trade" untyped
- rotkehlchen/api/v1/schemas.py:708: error: Untyped decorator makes function "validate_ledger_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:720: error: Untyped decorator makes function "make_ledger_action" untyped
- rotkehlchen/api/v1/schemas.py:745: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:758: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:797: error: Untyped decorator makes function "validate_tag_schema" untyped
- rotkehlchen/api/v1/schemas.py:852: error: Untyped decorator makes function "make_exchange_location_id" untyped
- rotkehlchen/api/v1/schemas.py:939: error: Untyped decorator makes function "validate_settings_schema" untyped
- rotkehlchen/api/v1/schemas.py:953: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1008: error: Untyped decorator makes function "validate_user_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:1059: error: Untyped decorator makes function "make_external_service" untyped
- rotkehlchen/api/v1/schemas.py:1152: error: Untyped decorator makes function "validate_accounting_reports_schema" untyped
- rotkehlchen/api/v1/schemas.py:1168: error: Untyped decorator makes function "validate_report_schema" untyped
- rotkehlchen/api/v1/schemas.py:1188: error: Untyped decorator makes function "make_report_data_query" untyped
- rotkehlchen/api/v1/schemas.py:1219: error: Untyped decorator makes function "validate_blockchain_account_schema" untyped
- rotkehlchen/api/v1/schemas.py:1254: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1546: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1554: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1603: error: Untyped decorator makes function "validate_blockchain_accounts_delete_schema" untyped
- rotkehlchen/api/v1/schemas.py:1611: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1709: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1750: error: Untyped decorator makes function "validate_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1781: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1809: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1813: error: Untyped decorator makes function "validate_modify_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1820: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1848: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1924: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:2030: error: Untyped decorator makes function "validate_eth2_validator_schema" untyped
- rotkehlchen/api/v1/schemas.py:2056: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:2099: error: Untyped decorator makes function "validate_eth2_daily_stats_schema" untyped
- rotkehlchen/api/v1/schemas.py:2137: error: Untyped decorator makes function "make_eth2_daily_stats_query" untyped
- rotkehlchen/api/v1/schemas.py:2185: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2227: error: Untyped decorator makes function "make_addressbook_entry" untyped
- rotkehlchen/api/v1/schemas.py:2252: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2274: error: Untyped decorator makes function "make_balance" untyped
- rotkehlchen/api/v1/schemas.py:2294: error: Untyped decorator makes function "make_location_data" untyped
- rotkehlchen/api/v1/schemas.py:2320: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2357: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2379: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2410: error: Untyped decorator makes function "make_user_note" untyped
- rotkehlchen/api/v1/schemas.py:2421: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/serialization/schemas.py:31: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/resources.py:198: error: Untyped decorator makes function "load_json_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:201: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:210: error: Untyped decorator makes function "load_json_query_data" untyped
- rotkehlchen/api/v1/resources.py:216: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:219: error: Untyped decorator makes function "load_json_query_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:222: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:226: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:235: error: Untyped decorator makes function "load_form_file_data" untyped
- rotkehlchen/api/v1/resources.py:238: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:239: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:244: error: Untyped decorator makes function "load_view_args_file_data" untyped
- rotkehlchen/api/v1/resources.py:247: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:248: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:328: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:345: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:354: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:371: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:395: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:421: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:431: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:447: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:463: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:486: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:502: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:523: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:546: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:561: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:569: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:579: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:600: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:628: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:637: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:664: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:668: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:673: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:689: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:705: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:710: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:714: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:719: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:730: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:735: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:745: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:755: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:777: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:782: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:787: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:792: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:814: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:828: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:858: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:890: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:905: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:930: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:946: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:962: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:981: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:995: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1003: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1008: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1020: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1025: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1030: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1042: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1067: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1084: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1102: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1126: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1135: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1145: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1164: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1196: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1215: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1232: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1240: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1260: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1265: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1275: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1285: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1324: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1329: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1350: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1369: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1390: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1412: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1432: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1462: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1467: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1471: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1482: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1487: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1492: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1509: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1514: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1523: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1539: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1555: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1575: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1600: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1616: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1621: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1634: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1644: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1654: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1663: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1685: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1695: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1705: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1715: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1725: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1735: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1756: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1766: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1787: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1797: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1818: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1828: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1838: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1859: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1880: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1890: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1911: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1921: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1942: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1952: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1973: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1994: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2003: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2013: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2034: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2055: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2064: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2074: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2084: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2105: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2132: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2137: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2142: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2153: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2164: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2168: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2178: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2194: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2208: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2224: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2238: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2251: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2266: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2281: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2285: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2302: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2307: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2324: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2349: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2358: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2367: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2376: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2396: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2405: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2414: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2429: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2450: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2462: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2479: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2506: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2514: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2534: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2548: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2557: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2581: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2593: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2598: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2603: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2612: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2621: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2648: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2653: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2663: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2668: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/server.py:337: error: Untyped decorator makes function "handle_request_parsing_error" untyped
- rotkehlchen/api/server.py:338: error: Untyped decorator makes function "handle_request_parsing_error" untyped

poetry (https://github.com/python-poetry/poetry)
- Warning: unused section(s) in pyproject.toml: module = ['xattr.*']
+ src/poetry/utils/shell.py:69: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.ed49ade9a7283cb5662cd4144fd59c6795c1c1c8
+ src/poetry/utils/shell.py:69: : note: use --pdb to drop into pdb
- src/poetry/console/commands/show.py:392: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
-

... (truncated 4820 lines) ...

github-actions[bot] avatar Aug 08 '22 10:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

poetry (https://github.com/python-poetry/poetry)
- Warning: unused section(s) in pyproject.toml: module = ['xattr.*']
+ src/poetry/utils/shell.py:69: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.6a1a9fbff0e6584af3ac5916191101a4ee00da05
+ src/poetry/utils/shell.py:69: : note: use --pdb to drop into pdb
- src/poetry/console/commands/show.py:392: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
- src/poetry/console/commands/show.py:441: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]"  [no-any-return]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2883, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3267, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3368, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2311, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1124, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2005, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2382, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 907, in accept
+     return visitor.visit_decorator(self)
+   File "/checker.py", line 4279, in visit_decorator
+     self.check_func_item(e.func, name=e.func.name)
+   File "/checker.py", line 1005, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2382, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1378, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3863, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3897, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4474, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 1742, in accept
+     return visitor.visit_member_expr(self)
+   File "/checkexpr.py", line 2502, in visit_member_expr
+     result = self.analyze_ordinary_member_access(e, is_lvalue)
+   File "/checkexpr.py", line 2519, in analyze_ordinary_member_access
+     member_type = analyze_member_access(
+   File "/checkmember.py", line 187, in analyze_member_access
+     result = _analyze_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 215, in _analyze_member_access
+     return analyze_type_type_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 392, in analyze_type_type_member_access
+     result = analyze_class_attribute_access(item, name, mx, override_info)
+   File "/checkmember.py", line 915, in analyze_class_attribute_access
+     return make_simplified_union(t.items + [mx.named_type(info.fullname)])
+   File "/checkmember.py", line 105, in named_type
+     return self.chk.named_type(name)
+   File "/checker.py", line 5651, in named_type
+     sym = self.lookup_qualified(name)
+   File "/checker.py", line 5756, in lookup_qualified
+     assert sym is not None, f"Internal error: attempted lookup of unknown name {name!r} {n} {self.modules}"
+ AssertionError: Internal error: attempted lookup of unknown name 'poetry.utils.shell.Shell' MypyFile:1(
+   src/poetry) {'poetry.config': <mypy.nodes.MypyFile object at 0x7f95c6704300>, 'poetry.config.config': <mypy.nodes.MypyFile object at 0x7f95c71ff060>, 'poetry.config.config_source': <mypy.nodes.MypyFile object at 0x7f95c71ffa00>, 'poetry.config.dict_config_source': <mypy.nodes.MypyFile object at 0x7f95c71fc5c0>, 'poetry.config.file_config_source': <mypy.nodes.MypyFile object at 0x7f95c71ff740>, 'poetry.config.source': <mypy.nodes.MypyFile object at 0x7f95c71feae0>, 'poetry.console': <mypy.nodes.MypyFile object at 0x7f95c751ceb0>, 'poetry.console.commands': <mypy.nodes.MypyFile object at 0x7f95c67722a0>, 'poetry.console.commands.cache': <mypy.nodes.MypyFile object at 0x7f95c6984670>, 'poetry.console.commands.cache.clear': <mypy.nodes.MypyFile object at 0x7f95c71fef00>, 'poetry.console.commands.cache.list': <mypy.nodes.MypyFile object at 0x7f95c71feda0>, 'poetry.console.commands.debug': <mypy.nodes.MypyFile object at 0x7f95c71fc460>, 'poetry.console.commands.debug.info': <mypy.nodes.MypyFile object at 0x7f95c720c880>, 'poetry.console.commands.debug.resolve': <mypy.nodes.MypyFile object at 0x7f95c720c1a0>, 'poetry.console.commands.env': <mypy.nodes.MypyFile object at 0x7f95c720c040>, 'poetry.console.commands.env.info': <mypy.nodes.MypyFile object at 0x7f95c6704510>, 'poetry.console.commands.env.list': <mypy.nodes.MypyFile object at 0x7f95c67047d0>, 'poetry.console.commands.env.remove': <mypy.nodes.MypyFile object at 0x7f95c6704a90>, 'poetry.console.commands.env.use': <mypy.nodes.MypyFile object at 0x7f95c6704e00>, 'poetry.console.commands.plugin': <mypy.nodes.MypyFile object at 0x7f95c6704f60>, 'poetry.console.commands.plugin.add': <mypy.nodes.MypyFile object at 0x7f95c6705430>, 'poetry.console.commands.plugin.remove': <mypy.nodes.MypyFile object at 0x7f95c67056f0>, 'poetry.console.commands.plugin.show': <mypy.nodes.MypyFile object at 0x7f95c6710ca0>, 'poetry.console.commands.self': <mypy.nodes.MypyFile object at 0x7f95c67116f0>, 'poetry.console.commands.self.show': <mypy.nodes.MypyFile object at 0x7f95c67109e0>, 'poetry.console.commands.self.show.plugins': <mypy.nodes.MypyFile object at 0x7f95c6710720>, 'poetry.console.commands.self.add': <mypy.nodes.MypyFile object at 0x7f95c67105c0>, 'poetry.console.commands.self.install': <mypy.nodes.MypyFile object at 0x7f95c6710460>, 'poetry.console.commands.self.lock': <mypy.nodes.MypyFile object at 0x7f95c67126c0>, 'poetry.console.commands.self.remove': <mypy.nodes.MypyFile object at 0x7f95c67101a0>, 'poetry.console.commands.self.self_command': <mypy.nodes.MypyFile object at 0x7f95c6710040>, 'poetry.console.commands.self.update': <mypy.nodes.MypyFile object at 0x7f95c6712560>, 'poetry.console.commands.source': <mypy.nodes.MypyFile object at 0x7f95c67124b0>, 'poetry.console.commands.source.add': <mypy.nodes.MypyFile object at 0x7f95c67122a0>, 'poetry.console.commands.source.remove': <mypy.nodes.MypyFile object at 0x7f95c6712090>, 'poetry.console.commands.source.show': <mypy.nodes.MypyFile object at 0x7f95c6711fe0>, 'poetry.console.commands.source.update': <mypy.nodes.MypyFile object at 0x7f95c6711e80>, 'poetry.console.commands.about': <mypy.nodes.MypyFile object at 0x7f95c6711dd0>, 'poetry.console.commands.add': <mypy.nodes.MypyFile object at 0x7f95c6711c70>, 'poetry.console.commands.build': <mypy.nodes.MypyFile object at 0x7f95c68f3ed0>, 'poetry.console.commands.check': <mypy.nodes.MypyFile object at 0x7f95c68f3d70>, 'poetry.console.commands.command': <mypy.nodes.MypyFile object at 0x7f95c68f3c10>, 'poetry.console.commands.config': <mypy.nodes.MypyFile object at 0x7f95c68f3ab0>, 'poetry.console.commands.env_command': <mypy.nodes.MypyFile object at 0x7f95c68f3a00>, 'poetry.console.commands.group_command': <mypy.nodes.MypyFile object at 0x7f95c68f0bf0>, 'poetry.console.commands.init': <mypy.nodes.MypyFile object at 0x7f95c68f3690>, 'poetry.console.commands.install': <mypy.nodes.MypyFile object at 0x7f95c68f33d0>, 'poetry.console.commands.installer_command': <mypy.nodes.MypyFile object at 0x7f95c68f3270>, 'poetry.console.commands.lock': <mypy.nodes.MypyFile object at 0x7f95c68f3060>, 'poetry.console.commands.new': <mypy.nodes.MypyFile object at 0x7f95c68f2e50>, 'poetry.console.commands.publish': <mypy.nodes.MypyFile object at 0x7f95c68f2da0>, 'poetry.console.commands.remove': <mypy.nodes.MypyFile object at 0x7f95c68f2b90>, 'poetry.console.commands.run': <mypy.nodes.MypyFile object at 0x7f95c68f2a30>, 'poetry.console.commands.search': <mypy.nodes.MypyFile object at 0x7f95c68f28d0>, 'poetry.console.commands.shell': <mypy.nodes.MypyFile object at 0x7f95c68f2770>, 'poetry.console.commands.show': <mypy.nodes.MypyFile object at 0x7f95c68f2610>, 'poetry.console.commands.update': <mypy.nodes.MypyFile object at 0x7f95c68f24b0>, 'poetry.console.commands.version': <mypy.nodes.MypyFile object at 0x7f95c68f2350>, 'poetry.console.events': <mypy.nodes.MypyFile object at 0x7f95c68f22a0>, 'poetry.console.events.console_events': <mypy.nodes.MypyFile object at 0x7f95c68f21f0>, 'poetry.console.io': <mypy.nodes.MypyFile object at 0x7f95c68f2140>, 'poetry.console.io.inputs': <mypy.nodes.MypyFile object at 0x7f95c68f2090>, 'poetry.console.io.inputs.run_argv_input': <mypy.nodes.MypyFile object at 0x7f95c67adf30>, 'poetry.console.logging': <mypy.nodes.MypyFile object at 0x7f95c67addd0>, 'poetry.console.logging.formatters': <mypy.nodes.MypyFile object at 0x7f95c67af270>, 'poetry.console.logging.formatters.builder_formatter': <mypy.nodes.MypyFile object at 0x7f95c67af690>, 'poetry.console.logging.formatters.formatter': <mypy.nodes.MypyFile object at 0x7f95c67af950>, 'poetry.console.logging.filters': <mypy.nodes.MypyFile object at 0x7f95c67afa00>, 'poetry.console.logging.io_formatter': <mypy.nodes.MypyFile object at 0x7f95c67afb60>, 'poetry.console.logging.io_handler': <mypy.nodes.MypyFile object at 0x7f95c67afe20>, 'poetry.console.application': <mypy.nodes.MypyFile object at 0x7f95c62600f0>, 'poetry.console.command_loader': <mypy.nodes.MypyFile object at 0x7f95c62605c0>, 'poetry.console.exceptions': <mypy.nodes.MypyFile object at 0x7f95c6260880>, 'poetry.inspection': <mypy.nodes.MypyFile object at 0x7f95c6260a90>, 'poetry.inspection.info': <mypy.nodes.MypyFile object at 0x7f95c6260e00>, 'poetry.installation': <mypy.nodes.MypyFile object at 0x7f95c6261010>, 'poetry.installation.operations': <mypy.nodes.MypyFile object at 0x7f95c6260f60>, 'poetry.installation.operations.install': <mypy.nodes.MypyFile object at 0x7f95c62612d0>, 'poetry.installation.operations.operation': <mypy.nodes.MypyFile object at 0x7f95c6261590>, 'poetry.installation.operations.uninstall': <mypy.nodes.MypyFile object at 0x7f95c6261850>, 'poetry.installation.operations.update': <mypy.nodes.MypyFile object at 0x7f95c6261b10>, 'poetry.installation.base_installer': <mypy.nodes.MypyFile object at 0x7f95c6261dd0>, 'poetry.installation.chef': <mypy.nodes.MypyFile object at 0x7f95c6262140>, 'poetry.installation.chooser': <mypy.nodes.MypyFile object at 0x7f95c6262400>, 'poetry.installation.executor': <mypy.nodes.MypyFile object at 0x7f95c6262820>, 'poetry.installation.installer': <mypy.nodes.MypyFile object at 0x7f95c6263110>, 'poetry.installation.noop_installer': <mypy.nodes.MypyFile object at 0x7f95c62631c0>, 'poetry.installation.pip_installer': <mypy.nodes.MypyFile object at 0x7f95c6263320>, 'poetry.json': <mypy.nodes.MypyFile object at 0x7f95c6263530>, 'poetry.layouts': <mypy.nodes.MypyFile object at 0x7f95c62635e0>, 'poetry.layouts.layout': <mypy.nodes.MypyFile object at 0x7f95c6263950>, 'poetry.layouts.src': <mypy.nodes.MypyFile object at 0x7f95c6263b60>, 'poetry.layouts.standard': <mypy.nodes.MypyFile object at 0x7f95c6263cc0>, 'poetry.masonry': <mypy.nodes.MypyFile object at 0x7f95c6263e20>, 'poetry.masonry.builders': <mypy.nodes.MypyFile object at 0x7f95c60d0040>, 'poetry.masonry.builders.editable': <mypy.nodes.MypyFile object at 0x7f95c60d05c0>, 'poetry.masonry.api': <mypy.nodes.MypyFile object at 0x7f95c60d0670>, 'poetry.mixology': <mypy.nodes.MypyFile object at 0x7f95c60d07d0>, 'poetry.mixology.solutions': <mypy.nodes.MypyFile object at 0x7f95c60d0880>, 'poetry.mixology.solutions.providers': <mypy.nodes.MypyFile object at 0x7f95c60d0930>, 'poetry.mixology.solutions.providers.python_requirement_solution_provider': <mypy.nodes.MypyFile object at 0x7f95c60d0e00>, 'poetry.mixology.solutions.solutions': <mypy.nodes.MypyFile object at 0x7f95c60d0f60>, 'poetry.mixology.solutions.solutions.python_requirement_solution': <mypy.nodes.MypyFile object at 0x7f95c60d1220>, 'poetry.mixology.assignment': <mypy.nodes.MypyFile object at 0x7f95c60d1430>, 'poetry.mixology.failure': <mypy.nodes.MypyFile object at 0x7f95c60d1640>, 'poetry.mixology.incompatibility': <mypy.nodes.MypyFile object at 0x7f95c60d1900>, 'poetry.mixology.incompatibility_cause': <mypy.nodes.MypyFile object at 0x7f95c60d1fe0>, 'poetry.mixology.partial_solution': <mypy.nodes.MypyFile object at 0x7f95c60d22a0>, 'poetry.mixology.result': <mypy.nodes.MypyFile object at 0x7f95c60d24b0>, 'poetry.mixology.set_relation': <mypy.nodes.MypyFile object at 0x7f95c60d26c0>, 'poetry.mixology.term': <mypy.nodes.MypyFile object at 0x7f95c60d2a30>, 'poetry.mixology.version_solver': <mypy.nodes.MypyFile object at 0x7f95c60d2da0>, 'poetry.packages': <mypy.nodes.MypyFile object at 0x7f95c60d2e50>, 'poetry.packages.dependency_package': <mypy.nodes.MypyFile object at 0x7f95c60d2fb0>, 'poetry.packages.locker': <mypy.nodes.MypyFile object at 0x7f95c60d3480>, 'poetry.packages.package_collection': <mypy.nodes.MypyFile object at 0x7f95c60d3690>, 'poetry.plugins': <mypy.nodes.MypyFile object at 0x7f95c60d3740>, 'poetry.plugins.application_plugin': <mypy.nodes.MypyFile object at 0x7f95c60d3a00>, 'poetry.plugins.base_plugin': <mypy.nodes.MypyFile object at 0x7f95c60d3cc0>, 'poetry.plugins.plugin': <mypy.nodes.MypyFile object at 0x7f95c5e38040>, 'poetry.plugins.plugin_manager': <mypy.nodes.MypyFile object at 0x7f95c5e38250>, 'poetry.publishing': <mypy.nodes.MypyFile object at 0x7f95c5e38460>, 'poetry.publishing.publisher': <mypy.nodes.MypyFile object at 0x7f95c5e385c0>, 'poetry.publishing.uploader': <mypy.nodes.MypyFile object at 0x7f95c5e38880>, 'poetry.puzzle': <mypy.nodes.MypyFile object at 0x7f95c5e389e0>, 'poetry.puzzle.exceptions': <mypy.nodes.MypyFile object at 0x7f95c5e38d50>, 'poetry.puzzle.provider': <mypy.nodes.MypyFile object at 0x7f95c5e39010>, 'poetry.puzzle.solver': <mypy.nodes.MypyFile object at 0x7f95c5e396f0>, 'poetry.puzzle.transaction': <mypy.nodes.MypyFile object at 0x7f95c5e39850>, 'poetry.repositories': <mypy.nodes.MypyFile object at 0x7f95c5e39900>, 'poetry.repositories.link_sources': <mypy.nodes.MypyFile object at 0x7f95c5e39b10>, 'poetry.repositories.link_sources.base': <mypy.nodes.MypyFile object at 0x7f95c5e39d20>, 'poetry.repositories.link_sources.html': <mypy.nodes.MypyFile object at 0x7f95c5e39fe0>, 'poetry.repositories.cached': <mypy.nodes.MypyFile object at 0x7f95c5e3a350>, 'poetry.repositories.exceptions': <mypy.nodes.MypyFile object at 0x7f95c5e3a610>, 'poetry.repositories.http': <mypy.nodes.MypyFile object at 0x7f95c5e3a820>, 'poetry.repositories.installed_repository': <mypy.nodes.MypyFile object at 0x7f95c5e3ab90>, 'poetry.repositories.legacy_repository': <mypy.nodes.MypyFile object at 0x7f95c5e3acf0>, 'poetry.repositories.lockfile_repository': <mypy.nodes.MypyFile object at 0x7f95c5e3af00>, 'poetry.repositories.pool': <mypy.nodes.MypyFile object at 0x7f95c5e3b060>, 'poetry.repositories.pypi_repository': <mypy.nodes.MypyFile object at 0x7f95c5e3b270>, 'poetry.repositories.repository': <mypy.nodes.MypyFile object at 0x7f95c5e3b3d0>, 'poetry.repositories.single_page_repository': <mypy.nodes.MypyFile object at 0x7f95c5e3b530>, 'poetry.utils': <mypy.nodes.MypyFile object at 0x7f95c5e3b690>, 'poetry.utils._compat': <mypy.nodes.MypyFile object at 0x7f95c5e3b7f0>, 'poetry.utils.authenticator': <mypy.nodes.MypyFile object at 0x7f95c5e3bd70>, 'poetry.utils.constants': <mypy.nodes.MypyFile object at 0x7f95c5be0040>, 'poetry.utils.dependency_specification': <mypy.nodes.MypyFile object at 0x7f95c5be03b0>, 'poetry.utils.env': <mypy.nodes.MypyFile object at 0x7f95c5be0e00>, 'poetry.utils.extras': <mypy.nodes.MypyFile object at 0x7f95c5be0510>, 'poetry.utils.helpers': <mypy.nodes.MypyFile object at 0x7f95c5be0f60>, 'poetry.utils.password_manager': <mypy.nodes.MypyFile object at 0x7f95c5be1590>, 'poetry.utils.patterns': <mypy.nodes.MypyFile object at 0x7f95c5be16f0>, 'poetry.utils.pip': <mypy.nodes.MypyFile object at 0x7f95c5be1850>, 'poetry.utils.setup_reader': <mypy.nodes.MypyFile object at 0x7f95c5be1b10>, 'poetry.utils.shell': <mypy.nodes.MypyFile object at 0x7f95c5be1d20>, 'poetry.utils.source': <mypy.nodes.MypyFile object at 0x7f95c5be1dd0>, 'poetry.vcs': <mypy.nodes.MypyFile object at 0x7f95c5be1e80>, 'poetry.vcs.git': <mypy.nodes.MypyFile object at 0x7f95c5be1fe0>, 'poetry.vcs.git.backend': <mypy.nodes.MypyFile object at 0x7f95c5be26c0>, 'poetry.vcs.git.system': <mypy.nodes.MypyFile object at 0x7f95c5be28d0>, 'poetry.version': <mypy.nodes.MypyFile object at 0x7f95c5be2980>, 'poetry.version.version_selector': <mypy.nodes.MypyFile object at 0x7f95c5be2ae0>, 'poetry.__main__': <mypy.nodes.MypyFile object at 0x7f95c5be2c40>, 'poetry.__version__': <mypy.nodes.MypyFile object at 0x7f95c5be2da0>, 'poetry.exceptions': <mypy.nodes.MypyFile object at 0x7f95c5be3270>, 'poetry.factory': <mypy.nodes.MypyFile object at 0x7f95c5be3690>, 'poetry.locations': <mypy.nodes.MypyFile object at 0x7f95c5be3480>, 'poetry.poetry': <mypy.nodes.MypyFile object at 0x7f95c5be37f0>, 'poetry': <mypy.nodes.MypyFile object at 0x7f95c5be38a0>, 'builtins': <mypy.nodes.MypyFile object at 0x7f95c5104460>, 'collections.abc': <mypy.nodes.MypyFile object at 0x7f95c59d0a90>, '__future__': <mypy.nodes.MypyFile object at 0x7f95c59d0bf0>, 'dataclasses': <mypy.nodes.MypyFile object at 0x7f95c59d1170>, 'logging': <mypy.nodes.MypyFile object at 0x7f95c59d1dd0>, 'os': <mypy.nodes.MypyFile object at 0x7f95c59d28d0>, 're': <mypy.nodes.MypyFile object at 0x7f95c59d35e0>, 'copy': <mypy.nodes.MypyFile object at 0x7f95c59d3740>, 'pathlib': <mypy.nodes.MypyFile object at 0x7f95c59d3c10>, 'typing': <mypy.nodes.MypyFile object at 0x7f95c50322a0>, 'contextlib': <mypy.nodes.MypyFile object at 0x7f95c50335e0>, 'sys': <mypy.nodes.MypyFile object at 0x7f95c5033e20>, 'json': <mypy.nodes.MypyFile object at 0x7f95c50414e0>, 'distutils.util': <mypy.nodes.MypyFile object at 0x7f95c50424b0>, 'importlib': <mypy.nodes.MypyFile object at 0x7f95c5042a30>, 'functools': <mypy.nodes.MypyFile object at 0x7f95c5043480>, 'glob': <mypy.nodes.MypyFile object at 0x7f95c5043b60>, 'tarfile': <mypy.nodes.MypyFile object at 0x7f95c4cc0510>, 'zipfile': <mypy.nodes.MypyFile object at 0x7f95c4cc0eb0>, 'hashlib': <mypy.nodes.MypyFile object at 0x7f95c4cc1640>, 'concurrent.futures': <mypy.nodes.MypyFile object at 0x7f95c4cc1f30>, 'csv': <mypy.nodes.MypyFile object at 0x7f95c4cc26c0>, 'itertools': <mypy.nodes.MypyFile object at 0x7f95c4cc33d0>, 'threading': <mypy.nodes.MypyFile object at 0x7f95c4cc3e20>, 'subprocess': <mypy.nodes.MypyFile object at 0x7f95c47be400>, 'urllib.parse': <mypy.nodes.MypyFile object at 0x7f95c47bf740>, 'tempfile': <mypy.nodes.MypyFile object at 0x7f95c47bfa00>, 'urllib': <mypy.nodes.MypyFile object at 0x7f95c47bfd70>, 'shutil': <mypy.nodes.MypyFile object at 0x7f95c488ce00>, 'base64': <mypy.nodes.MypyFile object at 0x7f95c488ceb0>, 'time': <mypy.nodes.MypyFile object at 0x7f95c488da60>, 'abc': <mypy.nodes.MypyFile object at 0x7f95c488eda0>, 'requests.adapters': <mypy.nodes.MypyFile object at 0x7f95c488f3d0>, 'requests.exceptions': <mypy.nodes.MypyFile object at 0x7f95c4a8c7d0>, 'urllib3.util': <mypy.nodes.MypyFile object at 0x7f95c4a8c880>, 'io': <mypy.nodes.MypyFile object at 0x7f95c4a8d9b0>, 'requests': <mypy.nodes.MypyFile object at 0x7f95c4a8ceb0>, 'urllib3': <mypy.nodes.MypyFile object at 0x7f95c4a8dd20>, 'collections': <mypy.nodes.MypyFile object at 0x7f95c4a8efb0>, 'warnings': <mypy.nodes.MypyFile object at 0x7f95c4a8f950>, 'html': <mypy.nodes.MypyFile object at 0x7f95c4a8fa00>, 'importlib.metadata': <mypy.nodes.MypyFile object at 0x7f95c46bdb10>, 'os.path': <mypy.nodes.MypyFile object at 0x7f95c46bdc70>, 'requests.auth': <mypy.nodes.MypyFile object at 0x7f95c46be2a0>, 'distutils.command.install': <mypy.nodes.MypyFile object at 0x7f95c46bee50>, 'distutils.core': <mypy.nodes.MypyFile object at 0x7f95c46bf320>, 'platform': <mypy.nodes.MypyFile object at 0x7f95c46bf5e0>, 'plistlib': <mypy.nodes.MypyFile object at 0x7f95c46bfab0>, 'sysconfig': <mypy.nodes.MypyFile object at 0x7f95c46bfb60>, 'site': <mypy.nodes.MypyFile object at 0x7f95c46bfed0>, 'pip': <mypy.nodes.MypyFile object at 0x7f95c45cc1a0>, 'stat': <mypy.nodes.MypyFile object at 0x7f95c45cc930>, 'winreg': <mypy.nodes.MypyFile object at 0x7f95c45ccca0>, 'ctypes': <mypy.nodes.MypyFile object at 0x7f95c45cf5e0>, 'ast': <mypy.nodes.MypyFile object at 0x7f95c46243b0>, 'configparser': <mypy.nodes.MypyFile object at 0x7f95c46254e0>, 'signal': <mypy.nodes.MypyFile object at 0x7f95c4625900>, 'shlex': <mypy.nodes.MypyFile object at 0x7f95c4625a60>, 'types': <mypy.nodes.MypyFile object at 0x7f95c4627ab0>, '_ast': <mypy.nodes.MypyFile object at 0x7f95c43197a0>, '_collections_abc': <mypy.nodes.MypyFile object at 0x7f95c4319c70>, '_typeshed': <mypy.nodes.MypyFile object at 0x7f95c431b320>, 'typing_extensions': <mypy.nodes.MypyFile object at 0x7f95c431ba00>, 'enum': <mypy.nodes.MypyFile object at 0x7f95c41907d0>, 'string': <mypy.nodes.MypyFile object at 0x7f95c4190a90>, 'sre_compile': <mypy.nodes.MypyFile object at 0x7f95c4190e00>, 'sre_constants': <mypy.nodes.MypyFile object at 0x7f95c41912d0>, 'importlib.abc': <mypy.nodes.MypyFile object at 0x7f95c41922a0>, 'importlib.machinery': <mypy.nodes.MypyFile object at 0x7f95c47bddd0>, 'json.decoder': <mypy.nodes.MypyFile object at 0x7f95c47bd6f0>, 'json.encoder': <mypy.nodes.MypyFile object at 0x7f95c47bd380>, 'distutils': <mypy.nodes.MypyFile object at 0x7f95c47bd430>, 'bz2': <mypy.nodes.MypyFile object at 0x7f95c47bce00>, 'gzip': <mypy.nodes.MypyFile object at 0x7f95c47bc7d0>, 'concurrent': <mypy.nodes.MypyFile object at 0x7f95c47bc670>, 'concurrent.futures._base': <mypy.nodes.MypyFile object at 0x7f95c4192e50>, 'concurrent.futures.process': <mypy.nodes.MypyFile object at 0x7f95c4193a00>, 'concurrent.futures.thread': <mypy.nodes.MypyFile object at 0x7f95c4074040>, '_csv': <mypy.nodes.MypyFile object at 0x7f95c4074460>, '_thread': <mypy.nodes.MypyFile object at 0x7f95c4074670>, 'urllib3.contrib.socks': <mypy.nodes.MypyFile object at 0x7f95c4074d50>, 'urllib3.util.retry': <mypy.nodes.MypyFile object at 0x7f95c4074f60>, 'urllib3.exceptions': <mypy.nodes.MypyFile object at 0x7f95c4076980>, 'urllib3.poolmanager': <mypy.nodes.MypyFile object at 0x7f95c4076cf0>, 'urllib3.response': <mypy.nodes.MypyFile object at 0x7f95c4077270>, 'requests.cookies': <mypy.nodes.MypyFile object at 0x7f95c4077950>, 'requests.models': <mypy.nodes.MypyFile object at 0x7f95c411c040>, 'requests.structures': <mypy.nodes.MypyFile object at 0x7f95c411c5c0>, 'requests.utils': <mypy.nodes.MypyFile object at 0x7f95c411c7d0>, 'urllib3.util.connection': <mypy.nodes.MypyFile object at 0x7f95c411c880>, 'urllib3.util.request': <mypy.nodes.MypyFile object at 0x7f95c411ca90>, 'urllib3.util.response': <mypy.nodes.MypyFile object at 0x7f95c411cca0>, 'urllib3.util.ssl_': <mypy.nodes.MypyFile object at 0x7f95c411cd50>, 'urllib3.util.timeout': <mypy.nodes.MypyFile object at 0x7f95c411d0c0>, 'urllib3.util.url': <mypy.nodes.MypyFile object at 0x7f95c411d430>, 'ssl': <mypy.nodes.MypyFile object at 0x7f95c411e770>, 'codecs': <mypy.nodes.MypyFile object at 0x7f95c411f530>, 'requests.__version__': <mypy.nodes.MypyFile object at 0x7f95c411f740>, 'requests.api': <mypy.nodes.MypyFile object at 0x7f95c411f7f0>, 'requests.sessions': <mypy.nodes.MypyFile object at 0x7f95c411fcc0>, 'requests.status_codes': <mypy.nodes.MypyFile object at 0x7f95c411fd70>, 'urllib3.connectionpool': <mypy.nodes.MypyFile object at 0x7f95c3d74300>, 'urllib3.filepost': <mypy.nodes.MypyFile object at 0x7f95c3d74460>, '_warnings': <mypy.nodes.MypyFile object at 0x7f95c3d74670>, 'importlib.metadata._meta': <mypy.nodes.MypyFile object at 0x7f95c3d74bf0>, 'email.message': <mypy.nodes.MypyFile object at 0x7f95c3d75170>, 'posixpath': <mypy.nodes.MypyFile object at 0x7f95c3d754e0>, 'distutils.command': <mypy.nodes.MypyFile object at 0x7f95c3d75850>, 'distutils.cmd': <mypy.nodes.MypyFile object at 0x7f95c3d75c70>, 'distutils.dist': <mypy.nodes.MypyFile object at 0x7f95c3d76090>, 'distutils.extension': <mypy.nodes.MypyFile object at 0x7f95c3d76610>, 'datetime': <mypy.nodes.MypyFile object at 0x7f95c3d76b90>, 'pip._internal.utils.entrypoints': <mypy.nodes.MypyFile object at 0x7f95c3d76fb0>, '_stat': <mypy.nodes.MypyFile object at 0x7f95c3d77320>, 'array': <mypy.nodes.MypyFile object at 0x7f95c3d775e0>, 'mmap': <mypy.nodes.MypyFile object at 0x7f95c3d77950>, 'pickle': <mypy.nodes.MypyFile object at 0x7f95c3ba0250>, 'sre_parse': <mypy.nodes.MypyFile object at 0x7f95c3ba07d0>, '_compression': <mypy.nodes.MypyFile object at 0x7f95c3ba0b40>, 'zlib': <mypy.nodes.MypyFile object at 0x7f95c3ba0e00>, 'multiprocessing.connection': <mypy.nodes.MypyFile object at 0x7f95c3ba1590>, 'multiprocessing.context': <mypy.nodes.MypyFile object at 0x7f95c3ba2350>, 'multiprocessing.queues': <mypy.nodes.MypyFile object at 0x7f95c3ba2da0>, 'weakref': <mypy.nodes.MypyFile object at 0x7f95c3ba3480>, 'queue': <mypy.nodes.MypyFile object at 0x7f95c3ba38a0>, 'urllib3.contrib': <mypy.nodes.MypyFile object at 0x7f95c3ba3950>, 'urllib3.connection': <mypy.nodes.MypyFile object at 0x7f95c3ba3ed0>, 'email.errors': <mypy.nodes.MypyFile object at 0x7f95c3add220>, 'http.client': <mypy.nodes.MypyFile object at 0x7f95c3ade140>, 'urllib3.request': <mypy.nodes.MypyFile object at 0x7f95c3ade350>, 'urllib3._collections': <mypy.nodes.MypyFile object at 0x7f95c3ade820>, 'http.cookiejar': <mypy.nodes.MypyFile object at 0x7f95c3adf270>, 'urllib3.fields': <mypy.nodes.MypyFile object at 0x7f95c3adf320>, 'requests.hooks': <mypy.nodes.MypyFile object at 0x7f95c3adf5e0>, 'requests.compat': <mypy.nodes.MypyFile object at 0x7f95c3adf740>, 'socket': <mypy.nodes.MypyFile object at 0x7f95c3840300>, '_codecs': <mypy.nodes.MypyFile object at 0x7f95c3840510>, 'urllib3.packages.ssl_match_hostname': <mypy.nodes.MypyFile object at 0x7f95c3840880>, 'urllib3.util.queue': <mypy.nodes.MypyFile object at 0x7f95c3840bf0>, 'urllib3.packages': <mypy.nodes.MypyFile object at 0x7f95c3840d50>, 'email': <mypy.nodes.MypyFile object at 0x7f95c3841010>, 'email.charset': <mypy.nodes.MypyFile object at 0x7f95c38412d0>, 'email.contentmanager': <mypy.nodes.MypyFile object at 0x7f95c3841900>, 'email.policy': <mypy.nodes.MypyFile object at 0x7f95c3841e80>, 'genericpath': <mypy.nodes.MypyFile object at 0x7f95c3842090>, 'pip._internal.utils': <mypy.nodes.MypyFile object at 0x7f95c38421f0>, 'pip._internal': <mypy.nodes.MypyFile object at 0x7f95c3842400>, 'pip._internal.cli.main': <mypy.nodes.MypyFile object at 0x7f95c38424b0>, 'multiprocessing': <mypy.nodes.MypyFile object at 0x7f95c3843320>, 'multiprocessing.synchronize': <mypy.nodes.MypyFile object at 0x7f95c3843cc0>, 'multiprocessing.managers': <mypy.nodes.MypyFile object at 0x7f95c38c4a90>, 'multiprocessing.pool': <mypy.nodes.MypyFile object at 0x7f95c38c5220>, 'multiprocessing.process': <mypy.nodes.MypyFile object at 0x7f95c38c5640>, 'multiprocessing.sharedctypes': <mypy.nodes.MypyFile object at 0x7f95c38c5f30>, '_weakrefset': <mypy.nodes.MypyFile object at 0x7f95c38c6560>, '_weakref': <mypy.nodes.MypyFile object at 0x7f95c38c6980>, 'http': <mypy.nodes.MypyFile object at 0x7f95c38c6b90>, 'urllib.request': <mypy.nodes.MypyFile object at 0x7f95c36d0300>, '_socket': <mypy.nodes.MypyFile object at 0x7f95c36d07d0>, 'email.header': <mypy.nodes.MypyFile object at 0x7f95c36d09e0>, 'pip._internal.utils.inject_securetransport': <mypy.nodes.MypyFile object at 0x7f95c36d0f60>, 'pip._internal.utils._log': <mypy.nodes.MypyFile object at 0x7f95c36d1430>, 'pip._internal.cli': <mypy.nodes.MypyFile object at 0x7f95c36d16f0>, 'pip._internal.cli.autocompletion': <mypy.nodes.MypyFile object at 0x7f95c36d1bc0>, 'pip._internal.cli.main_parser': <mypy.nodes.MypyFile object at 0x7f95c36d2560>, 'pip._internal.utils.deprecation': <mypy.nodes.MypyFile object at 0x7f95c36d3a00>, 'pip._internal.commands': <mypy.nodes.MypyFile object at 0x7f95c36d3d70>, 'pip._internal.exceptions': <mypy.nodes.MypyFile object at 0x7f95c363e090>, 'locale': <mypy.nodes.MypyFile object at 0x7f95c363fb60>, 'multiprocessing.reduction': <mypy.nodes.MypyFile object at 0x7f95c363fe20>, 'multiprocessing.spawn': <mypy.nodes.MypyFile object at 0x7f95c3450250>, 'multiprocessing.shared_memory': <mypy.nodes.MypyFile object at 0x7f95c3450880>, 'urllib.error': <mypy.nodes.MypyFile object at 0x7f95c3450e00>, 'urllib.response': <mypy.nodes.MypyFile object at 0x7f95c34514e0>, 'pip._vendor.urllib3.contrib.securetransport': <mypy.nodes.MypyFile object at 0x7f95c3451900>, 'pip._vendor.urllib3.contrib': <mypy.nodes.MypyFile object at 0x7f95c34522a0>, 'pip._internal.metadata': <mypy.nodes.MypyFile object at 0x7f95c3452350>, 'optparse': <mypy.nodes.MypyFile object at 0x7f95c33b8250>, 'pip._in

... (truncated 5089 lines) ...

github-actions[bot] avatar Aug 08 '22 10:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/constants/ethereum.py:32: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.51e5dd07eee4c7ae0135711edc3ef23d93b70afb
+ rotkehlchen/constants/ethereum.py:32: : note: use --pdb to drop into pdb
- rotkehlchen/chain/ethereum/contracts.py:105: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:251: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:252: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/types.py:253: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/modules/adex/adex.py:786: error: Unused "type: ignore" comment
- rotkehlchen/serialization/serialize.py:97: error: Statement is unreachable
- rotkehlchen/serialization/serialize.py:219: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:131: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:593: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:875: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:897: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:1054: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:95: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:114: error: Unused "type: ignore" comment
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 270, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2883, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3267, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3368, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2311, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1124, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2006, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2383, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 809, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 932, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 936, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1005, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1199, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2383, in visit_block
+     self.accept(s)
+   File "/checker.py", line 568, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1277, in accept
+     return visitor.visit_assignment_stmt(self)
+   File "/checker.py", line 2430, in visit_assignment_stmt
+     self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+   File "/checker.py", line 2506, in check_assignment
+     lvalue_type, index_lvalue, inferred = self.check_lvalue(lvalue)
+   File "/checker.py", line 3440, in check_lvalue
+     lvalue_type = self.expr_checker.analyze_ordinary_member_access(lvalue, True)
+   File "/checkexpr.py", line 2512, in analyze_ordinary_member_access
+     original_type = self.accept(e.expr)
+   File "/checkexpr.py", line 4474, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 1742, in accept
+     return visitor.visit_member_expr(self)
+   File "/checkexpr.py", line 2502, in visit_member_expr
+     result = self.analyze_ordinary_member_access(e, is_lvalue)
+   File "/checkexpr.py", line 2519, in analyze_ordinary_member_access
+     member_type = analyze_member_access(
+   File "/checkmember.py", line 187, in analyze_member_access
+     result = _analyze_member_access(name, typ, mx, override_info)
+   File "/checkmember.py", line 213, in _analyze_member_access
+     return analyze_type_callable_member_access(name, typ, mx)
+   File "/checkmember.py", line 350, in analyze_type_callable_member_access
+     result = analyze_class_attribute_access(
+   File "/checkmember.py", line 915, in analyze_class_attribute_access
+     return make_simplified_union(t.items + [mx.named_type(info.fullname)])
+   File "/checkmember.py", line 105, in named_type
+     return self.chk.named_type(name)
+   File "/checker.py", line 5652, in named_type
+     sym = self.lookup_qualified(name)
+   File "/checker.py", line 5757, in lookup_qualified
+     assert sym is not None, f"Internal error: attempted lookup of unknown name {name!r} {n.names}"
+ AssertionError: Internal error: attempted lookup of unknown name 'rotkehlchen.constants.ethereum.EthereumConstants' SymbolTable()
- rotkehlchen/api/v1/fields.py:69: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:152: error: Untyped decorator makes function "make_balance_entry" untyped
- rotkehlchen/api/v1/schemas.py:179: error: Untyped decorator makes function "validate_order_by_schema" untyped
- rotkehlchen/api/v1/schemas.py:213: error: Untyped decorator makes function "validate_ethtx_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:239: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/api/v1/schemas.py:276: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:307: error: Untyped decorator makes function "validate_trades_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:335: error: Untyped decorator makes function "make_trades_query" untyped
- rotkehlchen/api/v1/schemas.py:393: error: Untyped decorator makes function "make_staking_query" untyped
- rotkehlchen/api/v1/schemas.py:479: error: Untyped decorator makes function "validate_history_entry_schema" untyped
- rotkehlchen/api/v1/schemas.py:495: error: Untyped decorator makes function "make_history_base_entry" untyped
- rotkehlchen/api/v1/schemas.py:525: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:552: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:600: error: Untyped decorator makes function "validate_asset_movements_query_schema" untyped
- rotkehlchen/api/v1/schemas.py:627: error: Untyped decorator makes function "make_asset_movements_query" untyped
- rotkehlchen/api/v1/schemas.py:669: error: Untyped decorator makes function "validate_trade" untyped
- rotkehlchen/api/v1/schemas.py:708: error: Untyped decorator makes function "validate_ledger_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:720: error: Untyped decorator makes function "make_ledger_action" untyped
- rotkehlchen/api/v1/schemas.py:745: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:758: error: Untyped decorator makes function "make_manually_tracked_balances" untyped
- rotkehlchen/api/v1/schemas.py:797: error: Untyped decorator makes function "validate_tag_schema" untyped
- rotkehlchen/api/v1/schemas.py:852: error: Untyped decorator makes function "make_exchange_location_id" untyped
- rotkehlchen/api/v1/schemas.py:939: error: Untyped decorator makes function "validate_settings_schema" untyped
- rotkehlchen/api/v1/schemas.py:953: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1008: error: Untyped decorator makes function "validate_user_action_schema" untyped
- rotkehlchen/api/v1/schemas.py:1059: error: Untyped decorator makes function "make_external_service" untyped
- rotkehlchen/api/v1/schemas.py:1152: error: Untyped decorator makes function "validate_accounting_reports_schema" untyped
- rotkehlchen/api/v1/schemas.py:1168: error: Untyped decorator makes function "validate_report_schema" untyped
- rotkehlchen/api/v1/schemas.py:1188: error: Untyped decorator makes function "make_report_data_query" untyped
- rotkehlchen/api/v1/schemas.py:1219: error: Untyped decorator makes function "validate_blockchain_account_schema" untyped
- rotkehlchen/api/v1/schemas.py:1254: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1546: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1554: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1603: error: Untyped decorator makes function "validate_blockchain_accounts_delete_schema" untyped
- rotkehlchen/api/v1/schemas.py:1611: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1709: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:1750: error: Untyped decorator makes function "validate_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1781: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1809: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1813: error: Untyped decorator makes function "validate_modify_ethereum_token_schema" untyped
- rotkehlchen/api/v1/schemas.py:1820: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:1848: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:1924: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/schemas.py:2030: error: Untyped decorator makes function "validate_eth2_validator_schema" untyped
- rotkehlchen/api/v1/schemas.py:2056: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/schemas.py:2099: error: Untyped decorator makes function "validate_eth2_daily_stats_schema" untyped
- rotkehlchen/api/v1/schemas.py:2137: error: Untyped decorator makes function "make_eth2_daily_stats_query" untyped
- rotkehlchen/api/v1/schemas.py:2185: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2227: error: Untyped decorator makes function "make_addressbook_entry" untyped
- rotkehlchen/api/v1/schemas.py:2252: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2274: error: Untyped decorator makes function "make_balance" untyped
- rotkehlchen/api/v1/schemas.py:2294: error: Untyped decorator makes function "make_location_data" untyped
- rotkehlchen/api/v1/schemas.py:2320: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2357: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2379: error: Untyped decorator makes function "validate_schema" untyped
- rotkehlchen/api/v1/schemas.py:2410: error: Untyped decorator makes function "make_user_note" untyped
- rotkehlchen/api/v1/schemas.py:2421: error: Untyped decorator makes function "make_ethereum_transaction_query" untyped
- rotkehlchen/serialization/schemas.py:31: error: Untyped decorator makes function "transform_data" untyped
- rotkehlchen/api/v1/resources.py:198: error: Untyped decorator makes function "load_json_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:201: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:210: error: Untyped decorator makes function "load_json_query_data" untyped
- rotkehlchen/api/v1/resources.py:216: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:219: error: Untyped decorator makes function "load_json_query_viewargs_data" untyped
- rotkehlchen/api/v1/resources.py:222: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:226: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:235: error: Untyped decorator makes function "load_form_file_data" untyped
- rotkehlchen/api/v1/resources.py:238: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:239: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:244: error: Untyped decorator makes function "load_view_args_file_data" untyped
- rotkehlchen/api/v1/resources.py:247: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:248: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:328: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:345: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:354: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:371: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:395: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:421: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:431: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:447: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:463: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:486: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:502: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:523: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:546: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:561: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:569: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:579: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:600: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:628: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:637: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:664: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:668: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:673: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:689: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:705: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:710: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:714: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:719: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:730: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:735: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:745: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:755: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:777: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:782: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:787: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:792: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:814: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:828: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:858: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:890: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:905: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:930: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:946: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:962: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:981: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:995: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1003: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1008: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1020: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1025: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1030: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1042: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1067: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1084: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1102: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1126: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1135: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1145: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1164: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1196: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1215: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1232: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1240: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1260: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1265: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1275: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1285: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1324: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1329: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1350: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1369: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1390: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1412: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1432: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1462: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1467: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1471: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1482: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1487: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1492: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1509: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1514: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1523: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1539: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1555: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1575: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:1600: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:1616: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1621: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:1634: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1644: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1654: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1663: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:1685: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1695: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1705: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1715: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1725: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1735: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1756: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1766: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1787: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1797: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1818: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1828: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1838: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1859: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1880: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1890: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1911: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1921: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1942: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1952: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1973: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:1994: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2003: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2013: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2034: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2055: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2064: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2074: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2084: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2105: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2132: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2137: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2142: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2153: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2164: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2168: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2178: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2194: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2208: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2224: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2238: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2251: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2266: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2281: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2285: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2302: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2307: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2324: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2349: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2358: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2367: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2376: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2396: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2405: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2414: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2429: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2450: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2462: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2479: error: Untyped decorator makes function "get" untyped
- rotkehlchen/api/v1/resources.py:2506: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2514: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2534: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2548: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2557: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2581: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2593: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2598: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2603: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/v1/resources.py:2612: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2621: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2648: error: Untyped decorator makes function "post" untyped
- rotkehlchen/api/v1/resources.py:2653: error: Untyped decorator makes function "put" untyped
- rotkehlchen/api/v1/resources.py:2663: error: Untyped decorator makes function "patch" untyped
- rotkehlchen/api/v1/resources.py:2668: error: Untyped decorator makes function "delete" untyped
- rotkehlchen/api/server.py:337: error: Untyped decorator makes function "handle_request_parsing_error" untyped
- rotkehlchen/api/server.py:338: error: Untyped decorator makes function "handle_request_parsing_error" untyped

poetry (https://github.com/python-poetry/poetry)
- Warning: unused section(s) in pyproject.toml: module = ['xattr.*']
+ src/poetry/utils/shell.py:69: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.51e5dd07eee4c7ae0135711edc3ef23d93b70afb
+ src/poetry/utils/shell.py:69: : note: use --pdb to drop into pdb
- src/poetry/console/commands/show.py:392: error: Returning Any from function declared to return "Union[SupportsDunderLT[Any], SupportsDunderGT[A

... (truncated 4862 lines) ...

github-actions[bot] avatar Aug 08 '22 11:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/setup_command.py:105:26: error: "BuildDoc" has no attribute "distribution"  [attr-defined]
+ sphinx/setup_command.py:105:26: error: "Self" has no attribute "distribution"  [attr-defined]
- sphinx/setup_command.py:147:16: error: "BuildDoc" has no attribute "verbose"  [attr-defined]
+ sphinx/setup_command.py:147:16: error: "Self" has no attribute "verbose"  [attr-defined]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:508: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:508: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:509: error: Incompatible types in assignment (expression has type "str", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:509: error: Incompatible types in assignment (expression has type "bytes", variable has type "AnyStr")  [assignment]
+ src/_pytest/capture.py:515: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[str]]"  [arg-type]
+ src/_pytest/capture.py:515: error: Argument 1 to "iter" has incompatible type "Tuple[AnyStr, AnyStr]"; expected "SupportsIter[Iterator[bytes]]"  [arg-type]
+ src/_pytest/capture.py:518: error: Incompatible return value type (got "AnyStr", expected "str")  [return-value]
+ src/_pytest/capture.py:518: error: Incompatible return value type (got "AnyStr", expected "bytes")  [return-value]
+ src/_pytest/capture.py:524: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:524: error: Argument "out" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:524: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "str"  [arg-type]
+ src/_pytest/capture.py:524: error: Argument "err" to "CaptureResult" has incompatible type "object"; expected "bytes"  [arg-type]
+ src/_pytest/capture.py:584: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[str, str]")  [return-value]
+ src/_pytest/capture.py:584: error: Incompatible return value type (got "Tuple[AnyStr, AnyStr]", expected "Tuple[bytes, bytes]")  [return-value]

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/exceptions.py:195: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:195: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:213: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[Self], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[Self], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:428: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:428: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:44: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:78: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"
- src/prefect/client.py:229: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/client.py:229: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client.py:261: error: Self? has no attribute "status_code"
- src/prefect/client.py:267: error: Self? has no attribute "headers"
- src/prefect/client.py:280: error: Self? has no attribute "raise_for_status"
- src/prefect/context.py:306: error: Incompatible return value type (got "Optional[SettingsContext]", expected "SettingsContext")
+ src/prefect/context.py:306: error: Incompatible return value type (got "Optional[Self]", expected "SettingsContext")
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "k"  [var-annotated]
+ src/werkzeug/routing/map.py:905: error: Need type annotation for "v"  [var-annotated]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/common/grounds.py:194: error: "Annotable" has no attribute "argnames"
+ ibis/common/grounds.py:194: error: "Self" has no attribute "argnames"
- ibis/common/grounds.py:194: error: "Annotable" has no attribute "args"
+ ibis/common/grounds.py:194: error: "Self" has no attribute "args"
- ibis/expr/types/relations.py:579: error: Argument 1 to "select" of "Table" has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Iterable[Union[Value, str]]]"
+ ibis/expr/types/relations.py:579: error: Argument 1 to "select" of "Table" has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Iterable[Union[Value, str]]]"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "argnames"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "argnames"
- ibis/expr/datatypes/core.py:107: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:107: error: "Self" has no attribute "args"
- ibis/expr/datatypes/core.py:128: error: "DataType" has no attribute "args"
+ ibis/expr/datatypes/core.py:128: error: "Self" has no attribute "args"
- ibis/backends/base/__init__.py:471: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:471: error: "Type[Self]" has no attribute "Options"
- ibis/backends/base/__init__.py:488: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:488: error: "Self" has no attribute "compiler"
- ibis/backends/base/__init__.py:530: error: "BaseBackend" has no attribute "compiler"; maybe "compile"?
+ ibis/backends/base/__init__.py:530: error: "Self" has no attribute "compiler"
- ibis/expr/types/temporal.py:187: error: "_TimeComponentMixin" has no attribute "op"
+ ibis/expr/types/temporal.py:187: error: "Self" has no attribute "op"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping
- ibis/expr/operations/reductions.py:276: error: "ibis.expr.operations.reductions.Any" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:276: error: "Self" has no attribute "args"
- ibis/expr/operations/reductions.py:286: error: "NotAny" has no attribute "args"; maybe "arg"?
+ ibis/expr/operations/reductions.py:286: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:189: error: "ExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:189: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:201: error: "NotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:201: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:258: error: "UnresolvedExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:258: error: "Self" has no attribute "args"
- ibis/expr/operations/logical.py:268: error: "UnresolvedNotExistsSubquery" has no attribute "args"
+ ibis/expr/operations/logical.py:268: error: "Self" has no attribute "args"
- ibis/backends/tests/test_generic.py:101: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/postgres/tests/test_geospatial.py:199: error: Argument 1 has incompatible type "int"; expected "NumericValue"
- ibis/backends/postgres/tests/test_functions.py:405: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/clickhouse/tests/test_functions.py:152: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/tests/expr/test_value_exprs.py:1383: error: Argument 1 has incompatible type "int"; expected "Value"
- ibis/backends/base/sql/__init__.py:194: error: "BaseSQLBackend" has no attribute "expr"
+ ibis/backends/base/sql/__init__.py:194: error: "Self" has no attribute "expr"
- ibis/backends/base/sql/__init__.py:263: error: "BaseSQLBackend" has no attribute "_get_list"
+ ibis/backends/base/sql/__init__.py:263: error: "Self" has no attribute "_get_list"
- ibis/backends/base/sql/alchemy/__init__.py:346: error: "BaseAlchemyBackend" has no attribute "database_name"
+ ibis/backends/base/sql/alchemy/__init__.py:346: error: "Self" has no attribute "database_name"
- ibis/backends/tests/test_numeric.py:316: error: Argument 1 has incompatible type "int"; expected "Value"

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:503: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:503: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:910: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:910: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:439: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:439: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:446: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:446: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:458: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:458: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:465: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:465: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:599: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:603: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:603: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/__init__.py:61: error: "MsgBase[M]" has no attribute "skip"  [attr-defined]
+ steam/protobufs/__init__.py:61: error: "Self" has no attribute "skip"  [attr-defined]
- steam/iterators.py:174: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:189: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:629: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:637: error: Self? has no attribute "created_at"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/role.py:94: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:282: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/game.py:893: note:          def packages(self, *, language: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:893: note:          def packages(self, *, language: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/game.py:893: note:          def packages(self, *, languages: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:893: note:          def packages(self, *, languages: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/trade.py:578: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:578: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:592: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:592: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:564: error: "BaseUser" has no attribute "_level"; maybe "level"?  [attr-defined]
+ steam/abc.py:564: error: "Self" has no attribute "_level"  [attr-defined]
- steam/abc.py:641: error: "BaseUser" has no attribute "is_friend"  [attr-defined]
+ steam/abc.py:641: error: "Self" has no attribute "is_friend"  [attr-defined]
- steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "BaseUser"; expected "User"  [arg-type]
+ steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "Self"; expected "User"  [arg-type]
- steam/abc.py:993: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:993: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:1020: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:1020: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:168: error: Self? has no attribute "parts"  [attr-defined]
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:236: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:252: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:252: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:646: error: Trying to assign name "sha" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:647: error: Trying to assign name "size" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:648: error: Trying to assign name "change_number" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:178: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:178: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:312: error: "ClientUser" has no attribute "has_setup_profile"; maybe "setup_profile"?  [attr-defined]
+ steam/user.py:312: error: "Self" has no attribute "has_setup_profile"  [attr-defined]
- steam/game_server.py:293: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Tuple[object, ...], Any, SupportsIndex, SupportsIndex], int]")  [assignment]
+ steam/game_server.py:293: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Self, Any, SupportsIndex, SupportsIndex], int]")  [assignment]
- steam/game_server.py:347: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/game_server.py:347: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/chat.py:224: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/chat.py:224: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/chat.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/chat.py:256: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/chat.py:301: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/chat.py:301: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:47: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:47: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:58: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:58: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:160: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:160: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:189: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:189: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/group.py:54: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/group.py:54: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid'

... (truncated 3712 lines) ...

github-actions[bot] avatar Aug 08 '22 12:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "str")  [misc]
+ src/anyio/_core/_fileio.py:87: error: Incompatible types in "yield" (actual type "AnyStr", expected type "bytes")  [misc]
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/enums.py:99: error: Incompatible return value type (got "Type[Enum]", expected "Self")  [return-value]
- steam/enums.py:79: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:177: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:177: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:179: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:181: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:181: note: Possible overload variants:
- steam/enums.py:181: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:181: note:     def [Self] __new__(cls, cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> Self
- steam/enums.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:212: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:212: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:220: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:220: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:511: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:511: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/enums.py:918: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/enums.py:918: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:445: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:445: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:457: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:464: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:464: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:607: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:607: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:611: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/utils.py:611: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:15: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:32: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:32: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:57: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/protobufs/struct_messages.py:70: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/protobufs/struct_messages.py:70: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:175: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:190: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/iterators.py:226: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/iterators.py:226: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/iterators.py:547: error: "ChatMessageT" has no attribute "server_timestamp"  [attr-defined]
+ steam/iterators.py:547: error: "ChatMessage" has no attribute "server_timestamp"  [attr-defined]
- steam/iterators.py:626: error: Self? has no attribute "created_at"  [attr-defined]
- steam/iterators.py:634: error: Self? has no attribute "created_at"  [attr-defined]
- steam/models.py:62: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/models.py:62: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/models.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/role.py:92: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/role.py:92: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/gateway.py:280: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/game.py:908: note:          def packages(self, *, language: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:908: note:          def packages(self, *, language: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/game.py:908: note:          def packages(self, *, languages: Optional[Language] = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
+ steam/game.py:908: note:          def packages(self, *, languages: Language = ...) -> Coroutine[Any, Any, List[FetchedGamePackage]]
- steam/trade.py:578: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:578: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:592: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/trade.py:592: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:272: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:293: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:293: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:316: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:316: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "BaseUser"; expected "User"  [arg-type]
+ steam/abc.py:727: error: Argument 3 to "_from_proto" of "Review" has incompatible type "Self"; expected "User"  [arg-type]
- steam/abc.py:993: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:993: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/abc.py:1020: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/abc.py:1020: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:148: error: "__new__" must return a class instance (got Self?)  [misc]
- steam/manifest.py:148: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:148: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:151: error: Self? has no attribute "_mapping"  [attr-defined]
- steam/manifest.py:152: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:168: error: Self? has no attribute "parts"  [attr-defined]
- steam/manifest.py:171: error: Self? has no attribute "_manifest"  [attr-defined]
- steam/manifest.py:174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:236: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:252: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/manifest.py:252: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/manifest.py:646: error: Trying to assign name "sha" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:647: error: Trying to assign name "size" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/manifest.py:648: error: Trying to assign name "change_number" that is not in "__slots__" of type "steam.manifest.ProductInfo"  [misc]
- steam/user.py:179: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:179: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/user.py:179: note:          def send(self, content: Optional[Any] = ..., *, trade: Optional[TradeOffer] = ..., image: Optional[Image] = ...) -> Coroutine[Any, Any, Optional[UserMessage]]
+ steam/user.py:179: note:          def send(self, content: Any = ..., *, trade: TradeOffer = ..., image: Image = ...) -> Coroutine[Any, Any, UserMessage]
- steam/event.py:91: error: Trying to assign name "_feature" that is not in "__slots__" of type "steam.event.BaseEvent"  [misc]
- steam/event.py:92: error: Trying to assign name "_feature2" that is not in "__slots__" of type "steam.event.BaseEvent"  [misc]
- steam/game_server.py:290: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Tuple[object, ...], Any, SupportsIndex, SupportsIndex], int]")  [assignment]
+ steam/game_server.py:290: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Self, Any, SupportsIndex, SupportsIndex], int]")  [assignment]
- steam/game_server.py:344: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/game_server.py:344: error: Argument "type" to "__init__" of "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/chat.py:208: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/chat.py:208: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/chat.py:229: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/chat.py:229: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/chat.py:264: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/chat.py:264: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/chat.py:333: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/chat.py:333: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:47: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:47: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:58: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:58: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:160: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:160: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/review.py:189: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/review.py:189: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/clan.py:225: note:          def _from_proto(cls, state: ConnectionState, proto: GetChatRoomGroupSummaryResponse, *, id: int = ..., maybe_chunk: bool = ...) -> Coroutine[Any, Any, Self?]
+ steam/clan.py:225: note:          def _from_proto(cls, state: ConnectionState, proto: GetChatRoomGroupSummaryResponse, *, id: int = ..., maybe_chunk: bool = ...) -> Coroutine[Any, Any, Clan]
- steam/clan.py:225: note:          def _from_proto(cls, state: ConnectionState, proto: GetChatRoomGroupSummaryResponse, *, maybe_chunk: bool = ...) -> Coroutine[Any, Any, Self?]
+ steam/clan.py:225: note:          def _from_proto(cls, state: ConnectionState, proto: GetChatRoomGroupSummaryResponse, *, maybe_chunk: bool = ...) -> Coroutine[Any, Any, Clan]
- steam/clan.py:231: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/clan.py:231: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/clan.py:233: error: Self? has no attribute "__await__"  [attr-defined]
- steam/clan.py:245: error: Incompatible types in assignment (expression has type "Union[User, SteamID]", variable has type "User")  [assignment]
+ steam/clan.py:245: error: Incompatible types in assignment (expression has type "SteamID", variable has type "User")  [assignment]
- steam/clan.py:275: error: Incompatible types in assignment (expression has type "Union[User, SteamID]", variable has type "User")  [assignment]
+ steam/clan.py:275: error: Incompatible types in assignment (expression has type "SteamID", variable has type "User")  [assignment]
- steam/state.py:109: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/state.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/state.py:317: error: Self? has no attribute "id"  [attr-defined]
- steam/state.py:1013: error: Self? has no attribute "id"  [attr-defined]
- steam/state.py:1014: error: Self? has no attribute "_id"  [attr-defined]
- steam/state.py:1015: error: Self? has no attribute "_id"  [attr-defined]
- steam/state.py:1019: error: Self? has no attribute "id"  [attr-defined]
- steam/state.py:1076: error: Self? has no attribute "_update_channels"  [attr-defined]
- steam/state.py:1080: error: Self? has no attribute "id"  [attr-defined]
- steam/state.py:1081: error: Self? has no attribute "_id"  [attr-defined]
- steam/state.py:1082: error: Self? has no attribute "_id"  [attr-defined]
- steam/state.py:1085: error: Self? has no attribute "_update_channels"  [attr-defined]
- steam/state.py:1089: error: Self? has no attribute "id"  [attr-defined]
- steam/state.py:1116: error: Argument 3 to "UserInvite" has incompatible type "int"; expected "Optional[FriendRelationship]"  [arg-type]
+ steam/state.py:1116: error: Argument 3 to "UserInvite" has incompatible type "int"; expected "FriendRelationship"  [arg-type]
- steam/state.py:1357: error: Self? has no attribute "__anext__"  [attr-defined]
- steam/client.py:515: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/client.py:515: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/client.py:587: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/client.py:587: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/client.py:599: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Optional[Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]]"  [arg-type]
+ steam/client.py:599: error: Argument "type" to "SteamID" has incompatible type "int"; expected "Union[Type, Literal['Invalid', 'Individual', 'Multiseat', 'GameServer', 'AnonGameServer', 'Pending', 'ContentServer', 'Clan', 'Chat', 'ConsoleUser', 'AnonUser', 'Max', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"  [arg-type]
- steam/ext/commands/cooldown.py:60: error: Item "Channel[Self?]" of "Union[Channel[Self?], Any, SteamID]" has no attribute "id"  [union-attr]
+ steam/ext/commands/cooldown.py:60: error: Item "Channel[Self]" of "Union[Channel[Self], Any, SteamID]" has no attribute "id"  [union-attr]
+ steam/ext/commands/cooldown.py:84: error: Incompatible types in assignment (expression has type "Tuple[int, ...]", target has type "T_Bucket")  [assignment]
+ steam/ext/commands/cooldown.py:84: error: Incompatible types in assignment (expression has type "int", target has type "T_Bucket")  [assignment]
+ steam/ext/commands/cooldown.py:98: error: Argument 1 to "_calls" of "Cooldown" has incompatible type "Tuple[int, ...]"; expected "T_Bucket"  [arg-type]
- steam/ext/commands/cooldown.py:116: error: Argument 1 to "expire_cache" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "Tuple[int, ...]"  [arg-type]
+ steam/ext/commands/cooldown.py:98: error: Argument 1 to "_calls" of "Cooldown" has incompatible type "int"; expected "T_Bucket"  [arg-type]
- steam/ext/commands/cooldown.py:116: error: Argument 1 to "expire_cache" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "int"  [arg-type]
+ steam/ext/commands/cooldown.py:116: error: Argument 1 to "expire_cache" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "T_Bucket"  [arg-type]
- steam/ext/commands/cooldown.py:117: error: Argument 1 to "get_retry_after" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "Tuple[int, ...]"  [arg-type]
- steam/ext/commands/cooldown.py:117: error: Argument 1 to "get_retry_after" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "int"  [arg-type]
+ steam/ext/commands/cooldown.py:117: error: Argument 1 to "get_retry_after" of "Cooldown" has incompatible type "Union[int, Tuple[int, ...]]"; expected "T_Bucket"  [arg-type]
- steam/ext/commands/converters.py:245: error: Incompatible types in assignment (expression has type "Type[Converter[T_co]]", target has type "Union[ConverterBase[Any], BasicConverter[Any]]")  [assignment]
+ steam/ext/commands/converters.py:245: error: Incompatible types in assignment (expression has type "Type[Self]", target has type "Union[ConverterBase[Any], BasicConverter[Any]]")  [assignment]
- steam/ext/commands/converters.py:250: error: Incompatible types in assignment (expression has type "Type[Converter[T_co]]", target has type "Union[ConverterBase[Any], BasicConverter[Any]]")  [assignment]
+ steam/ext/commands/converters.py:250: error: Incompatible types in assignment (expression has type "Type[Self]", target has type "Union[ConverterBase[Any], BasicConverter[Any]]")  [assignment]
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, id: Union[SupportsInt, SupportsIndex, str, bytes], name: Optional[str] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, id: Union[SupportsInt, SupportsIndex, str, bytes], name: str = ..., context_id: int = ...) -> Game
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Team Fortress 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Team Fortress 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: int = ...) -> Game
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Left 4 Dead 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Left 4 Dead 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: int = ...) -> Game
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['DOTA 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['DOTA 2'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: int = ...) -> Game
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Counter Strike Global-Offensive'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Counter Strike Global-Offensive'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: int = ...) -> Game
- steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Steam'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: Optional[int] = ...) -> Game
+ steam/ext/commands/converters.py:362: note:     def __init__(self, *, name: Literal['Steam'], id: Union[SupportsInt, SupportsIndex, str, bytes] = ..., context_id: int = ...) -> Game
- steam/ext/commands/commands.py:134: error: "C" has no attribute "__original_kwargs__"  [attr-defined]
+ steam/ext/commands/commands.py:134: error: "Command[Any]" has no attribute "__original_kwargs__"  [attr-defined]
- steam/ext/commands/commands.py:234: error: Self? has no attribute "name"  [attr-defined]
- steam/ext/commands/commands.py:237: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/ext/commands/commands.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/ext/commands/commands.py:250: error: Incompatible types in assignment (expression has type "GroupMixin", variable has type "Command[P]")  [assignment]
+ steam/ext/commands/commands.py:250: error: Incompatible types in assignment (expression has type "GroupMixin", variable has type "Self")  [assignment]
+ steam/ext/commands/commands.py:841: error: Incompatible return value type (got "List[Command[Any]]", expected "List[Self]")  [return-value]
- steam/ext/commands/commands.py:828: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- steam/ext/commands/commands.py:828: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/ext/commands/commands.py:858: error: Incompatible types in assignment (expression has type "Command[Any]", variable has type "Group[P]")  [assignment]
+ steam/ext/commands/commands.py:858: error: Incompatible types in assignment (expression has type "Command[Any]", variable has type "Self")  [assignment]
- steam/ext/commands/help.py:33: error: Argument 1 to "__init__" of "Command" has incompatible type "Callable[[Context, DefaultNamedArg(Optional[str], 'content')], Coroutine[Any, Any, None]]"; expected "CallbackType[Any]"  [arg-type]
+ steam/ext/commands/help.py:33: error: Argument 1 to "__init__" of "Command" has incompatible type "Callable[[Context, DefaultNamedArg(str, 'content')], Coroutine[Any, Any, None]]"; expected "CallbackType[Any]"  [arg-type]
- steam/ext/commands/help.py:184: error: Self? has no attribute "name"  [attr-defined]
- steam/ext/commands/cog.py:88: error: Self? has no attribute "__original_kwargs__"  [attr-defined]
+ steam/ext/commands/cog.py:88: error: "Group[Any]" has no attribute "__original_kwargs__"  [attr-defined]
- steam/ext/commands/cog.py:200: error: Self? has no attribute "clean_params"  [attr-defined]
- steam/ext/commands/cog.py:201: error: Self? has no attribute "cog"  [attr-defined]
- steam/ext/commands/cog.py:202: error: Self? has no attribute "clean_params"  [attr-defined]
- steam/ext/commands/bot.py:254: error: Argument "path" to "ImportError" has incompatible type "Union[str, PathLike[str]]"; expected "Optional[str]"  [arg-type]
+ steam/ext/commands/bot.py:254: error: Argument "path" to "ImportError" has incompatible type "Union[str, PathLike[str]]"; expected "str"  [arg-type]
- steam/ext/commands/bot.py:280: error: Argument "path" to "ModuleNotFoundError" has incompatible type "Union[str, PathLike[str]]"; expected "Optional[str]"  [arg-type]
+ steam/ext/commands/bot.py:280: error: Argument "path" to "ModuleNotFoundError" has incompatible type "Union[str, PathLike[str]]"; expected "str"  [arg-type]
- steam/ext/commands/bot.py:314: error: Argument "path" to "ModuleNotFoundError" has incompatible type "Union[str, PathLike[str]]"; expected "Optional[str]"  [arg-type]
+ steam/ext/commands/bot.py:314: error: Argument "path" to "ModuleNotFoundError" has incompatible type "Union[str, PathLike[str]]"; expected "str"  [arg-type]
- steam/ext/commands/bot.py:648: note:          def wait_for(self, event: Literal['connect', 'disconnect', 'ready', 'login', 'logout'], *, check: Callable[[], bool] = ..., timeout: Optional[float] = ...) -> Coroutine[Any, Any, None]
+ steam/ext/commands/bot.py:648: note:          def wait_for(self, event: Literal['connect', 'disconnect', 'ready', 'login', 'logout'], *, check: Callable[[], bool] = ..., timeout: float = ...) -> Coroutine[Any, Any, None]
- steam/ext/commands/bot.py:648: note:          def wait_for(self, event: Literal['error'], *, check: Callable[[str, Exception, Tuple[Any, ...], Dict[str, Any]], bool] = ..., timeout: Optional[float] = ...) -> Coroutine[Any, Any, Tuple[str, Exception, Tuple[Any, ...], Dict[str, Any]]]
+ steam/ext/commands/bot.py:648: note:          def wait_for(self, event: Literal['error'], *, check: 

... (truncated 3717 lines) ...

github-actions[bot] avatar Aug 11 '22 15:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:494: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:637: error: Need type annotation for "user_env"
+ paasta_tools/utils.py:661: error: Incompatible return value type (got "Union[List[str], List[<nothing>]]", expected "Optional[List[str]]")
+ paasta_tools/utils.py:906: error: Incompatible return value type (got "Union[List[DockerVolume], List[<nothing>]]", expected "List[DockerVolume]")
+ paasta_tools/utils.py:909: error: Incompatible return value type (got "Union[List[AwsEbsVolume], List[<nothing>]]", expected "List[AwsEbsVolume]")
+ paasta_tools/utils.py:912: error: Incompatible return value type (got "Union[List[SecretVolume], List[<nothing>]]", expected "List[SecretVolume]")
+ paasta_tools/utils.py:943: error: Argument 1 to "stringify_constraints" has incompatible type "Union[List[Sequence[Union[str, int, float]]], List[<nothing>]]"; expected "Optional[List[Sequence[Union[str, int, float]]]]"
+ paasta_tools/utils.py:2154: error: Incompatible return value type (got "Union[Dict[str, bool], Dict[<nothing>, <nothing>]]", expected "Dict[str, bool]")
+ paasta_tools/utils.py:2333: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2336: error: Incompatible return value type (got "Union[Dict[str, ClusterAutoscalingResource], Dict[<nothing>, <nothing>]]", expected "Dict[str, ClusterAutoscalingResource]")
+ paasta_tools/utils.py:2372: error: Incompatible return value type (got "Union[Dict[str, ResourcePoolSettings], Dict[<nothing>, <nothing>]]", expected "Dict[str, ResourcePoolSettings]")
+ paasta_tools/utils.py:2382: error: Incompatible return value type (got "Union[List[MarathonConfigDict], List[<nothing>]]", expected "List[MarathonConfigDict]")
+ paasta_tools/utils.py:2385: error: Incompatible return value type (got "Union[List[MarathonConfigDict], List[<nothing>]]", expected "List[MarathonConfigDict]")
+ paasta_tools/utils.py:2545: error: No overload variant of "get" of "dict" matches argument types "str", "None"
+ paasta_tools/utils.py:2545: note: Possible overload variants:
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/utils.py:2573: error: Incompatible return value type (got "Union[List[str], List[<nothing>]]", expected "List[str]")
+ paasta_tools/utils.py:2576: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2682: error: Incompatible return value type (got "Union[List[str], List[<nothing>]]", expected "List[str]")
+ paasta_tools/utils.py:2685: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/spark_tools.py:112: error: No overload variant of "get" of "dict" matches argument type "str"
+ paasta_tools/spark_tools.py:112: note: Possible overload variants:
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/long_running_service_tools.py:211: error: Need type annotation for "registrations"
+ paasta_tools/long_running_service_tools.py:223: error: Need type annotation for "registrations"
+ paasta_tools/kubernetes_tools.py:1181: error: No overload variant of "get" of "dict" matches argument types "str", "Dict[<nothing>, <nothing>]"
+ paasta_tools/kubernetes_tools.py:1181: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1307: error: Need type annotation for "command"
+ paasta_tools/kubernetes_tools.py:1386: error: Need type annotation for "required_boto_keys"
+ paasta_tools/kubernetes_tools.py:1598: error: No overload variant of "get" of "dict" matches argument types "str", "int"
+ paasta_tools/kubernetes_tools.py:1598: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1607: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1607: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1616: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1616: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1896: error: Incompatible types in assignment (expression has type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]", variable has type "Mapping[str, Any]")
+ paasta_tools/kubernetes_tools.py:1917: error: Argument "raw_selectors" to "raw_selectors_to_requirements" has incompatible type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]"; expected "Mapping[str, Any]"
+ paasta_tools/kubernetes_tools.py:1948: error: Need type annotation for "conditions"
+ paasta_tools/vitess_tools.py:71: error: Need type annotation for "registrations"
+ paasta_tools/cassandracluster_tools.py:86: error: Need type annotation for "registrations"
+ paasta_tools/kubernetes/bin/paasta_secrets_sync.py:299: error: Need type annotation for "boto_keys"
+ paasta_tools/tron_tools.py:275: error: Need type annotation for "spark_args"
+ paasta_tools/tron_tools.py:423: error: Need type annotation for "base_env"

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/xcompile.py:31: error: Returning Any from function declared to return "str"
+ ci/cleanup/aws.py:101: error: Need type annotation for "roles"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.9150d9f19009c812c9ad37f0b1ed7c96feea703c
- src/urllib3/connection.py:237: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:463: error: Item "socket" of "Union[socket, Any]" has no attribute "server_hostname"  [union-attr]
- test/with_dummyserver/test_https.py:784: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 94, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 189, in build
+     result = _build(
+   File "/build.py", line 273, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3264, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3365, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2308, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 466, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1127, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2010, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 811, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 936, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 940, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1009, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1193, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1502, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4077, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4113, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1454, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3984, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1220, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3860, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4503, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 386, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 492, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1069, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1152, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1290, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1589, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1484, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4511, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2089, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4073, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1009, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1193, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1386, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3871, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3905, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4503, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 386, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 492, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1069, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1152, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1288, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 103, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 44, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1792, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 260, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1172, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 136, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

kopf (https://github.com/nolar/kopf)
+ kopf/_cogs/configs/conventions.py:268: error: Need type annotation for "current_keys"
+ kopf/_cogs/configs/progress.py:239: error: Need type annotation for "annotations"

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/recommend_programs.py:169: error: Argument 1 to "parse_data" of "Recommendations" has incompatible type "Union[str, List[Union[str, Tuple[str, str, str]]], List[<nothing>]]"; expected "Union[str, List[Union[str, Tuple[str, str, str]]]]"

operator (https://github.com/canonical/operator)
+ ops/pebble.py:827: error: Need type annotation for "environment"
+ ops/pebble.py:834: error: Need type annotation for "on_check_failure"
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
+ ops/charm.py:931: error: Need type annotation for "tags"
+ ops/charm.py:932: error: Need type annotation for "terms"
+ ops/charm.py:933: error: Need type annotation for "series"
+ ops/charm.py:952: error: Need type annotation for "extra_bindings"
+ ops/charm.py:1103: error: Need type annotation for "parameters"
+ ops/charm.py:1104: error: Need type annotation for "required"
+ ops/charm.py:1124: error: Argument 1 to "_populate_mounts" of "ContainerMeta" has incompatible type "Union[List[_MountDict], List[<nothing>]]"; expected "List[_MountDict]"

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures.pyi:109: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2720: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3673: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.9150d9f19009c812c9ad37f0b1ed7c96feea703c
+ tornado/tcpserver.py:391: : note: use --pdb to drop into pdb
- tornado/queues.py:384: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/queues.py:421: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/web.py:1692: error: Function does not return a value
- tornado/test/httpclient_test.py:693: error: Argument 1 to "assertGreaterEqual" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderGE[int]"
- tornado/test/httpclient_test.py:694: error: Argument 1 to "assertLess" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderLT[float]"
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 94, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 189, in build
+     result = _build(
+   File "/build.py", line 273, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3264, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3365, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2308, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 466, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1127, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2010, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 811, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 936, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 940, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1009, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1193, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1502, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4077, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4113, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1454, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3984, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1220, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3860, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4503, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 386, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 492, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1069, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1152, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1290, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1589, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1484, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4511, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2089, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4073, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1009, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1193, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1202, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 572, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1386, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3871, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3905, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4503, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 386, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 492, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1069, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1152, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1288, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 103, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 44, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1792, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 260, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1172, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 136, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/orion/utilities/schemas.py:280: error: "T" has no attribute "_reset_fields"
+ src/prefect/orion/utilities/schemas.py:280: error: "object" has no attribute "_reset_fields"
- src/prefect/orion/utilities/schemas.py:281: error: "T" has no attribute "__fields__"
+ src/prefect/orion/utilities/schemas.py:281: error: "object" has no attribute "__fields__"
- src/prefect/exceptions.py:195: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:195: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:213: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:487: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:487: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/soft

... (truncated 4182 lines) ...

github-actions[bot] avatar Aug 13 '22 16:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:494: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:494: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:637: error: Need type annotation for "user_env"
+ paasta_tools/utils.py:637: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:1395: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"
+ paasta_tools/utils.py:2154: error: Incompatible return value type (got "Union[Dict[str, bool], Dict[<nothing>, <nothing>]]", expected "Dict[str, bool]")
+ paasta_tools/utils.py:2154: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, bool], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2333: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2333: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2336: error: Incompatible return value type (got "Union[Dict[str, ClusterAutoscalingResource], Dict[<nothing>, <nothing>]]", expected "Dict[str, ClusterAutoscalingResource]")
+ paasta_tools/utils.py:2336: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ClusterAutoscalingResource], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2372: error: Incompatible return value type (got "Union[Dict[str, ResourcePoolSettings], Dict[<nothing>, <nothing>]]", expected "Dict[str, ResourcePoolSettings]")
+ paasta_tools/utils.py:2372: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ResourcePoolSettings], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2545: error: No overload variant of "get" of "dict" matches argument types "str", "None"
+ paasta_tools/utils.py:2545: note: Possible overload variants:
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/utils.py:2545: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2576: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2576: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2685: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:2685: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/spark_tools.py:112: error: No overload variant of "get" of "dict" matches argument type "str"
+ paasta_tools/spark_tools.py:112: note: Possible overload variants:
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/spark_tools.py:112: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SparkConfig], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:655: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"; expected "SupportsKeysAndGetItem[str, object]"
+ paasta_tools/kubernetes_tools.py:869: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"
+ paasta_tools/kubernetes_tools.py:869: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ paasta_tools/kubernetes_tools.py:1181: error: No overload variant of "get" of "dict" matches argument types "str", "Dict[<nothing>, <nothing>]"
+ paasta_tools/kubernetes_tools.py:1181: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1181: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SidecarResourceRequirements], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1598: error: No overload variant of "get" of "dict" matches argument types "str", "int"
+ paasta_tools/kubernetes_tools.py:1598: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1598: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1607: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1607: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1607: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1616: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1616: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1616: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1896: error: Incompatible types in assignment (expression has type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]", variable has type "Mapping[str, Any]")
+ paasta_tools/kubernetes_tools.py:1896: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument "raw_selectors" to "raw_selectors_to_requirements" has incompatible type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]"; expected "Mapping[str, Any]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:275: error: Need type annotation for "spark_args"
+ paasta_tools/tron_tools.py:275: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:423: error: Need type annotation for "base_env"
+ paasta_tools/tron_tools.py:423: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/cli/cmds/logs.py:517: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/xcompile.py:31: error: Returning Any from function declared to return "str"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.84110086d87bb351e9bf75a105a215b01ed35476
- src/urllib3/connection.py:237: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:463: error: Item "socket" of "Union[socket, Any]" has no attribute "server_hostname"  [union-attr]
- test/with_dummyserver/test_https.py:784: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 468, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2010, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 938, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 942, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1195, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4077, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4113, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3984, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1222, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3860, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1392, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1691, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1586, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4633, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4192, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1195, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2390, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1388, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3871, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3905, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1390, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1788, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1166, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

kopf (https://github.com/nolar/kopf)
+ kopf/_cogs/configs/conventions.py:268: error: Need type annotation for "current_keys"
+ kopf/_cogs/configs/conventions.py:268: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/conventions.py:272: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/progress.py:239: error: Need type annotation for "annotations"
+ kopf/_cogs/configs/progress.py:239: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/peering.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, Any], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:116: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:117: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:118: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:120: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:145: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:216: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2720: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3673: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]

operator (https://github.com/canonical/operator)
+ ops/pebble.py:719: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:722: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:785: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:788: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:827: error: Need type annotation for "environment"
+ ops/pebble.py:827: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:834: error: Need type annotation for "on_check_failure"
+ ops/pebble.py:834: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
+ ops/charm.py:937: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:939: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:941: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:947: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _StorageMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:949: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ResourceMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:951: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _PayloadMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:952: error: Need type annotation for "extra_bindings"
+ ops/charm.py:952: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ ops/charm.py:958: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ContainerMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:1025: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"
+ ops/charm.py:1025: note: Possible overload variants:
+ ops/charm.py:1025: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1025: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ ops/charm.py:1051: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"
+ ops/charm.py:1051: note: Possible overload variants:
+ ops/charm.py:1051: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1051: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ ops/charm.py:1078: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"
+ ops/charm.py:1078: note: Possible overload variants:
+ ops/charm.py:1078: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1078: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[str, Self]) -> object
+ ops/charm.py:1103: error: Need type annotation for "parameters"
+ ops/charm.py:1103: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Dict[str, Union[Union[int, float], bool, str, Dict[str, Any], List[Any], Tuple[Any, ...]]]], Mapping[_KT, _VT_co]]"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/orion/utilities/schemas.py:280: error: "T" has no attribute "_reset_fields"
+ src/prefect/orion/utilities/schemas.py:280: error: "object" has no attribute "_reset_fields"
- src/prefect/orion/utilities/schemas.py:281: error: "T" has no attribute "__fields__"
+ src/prefect/orion/utilities/schemas.py:281: error: "object" has no attribute "__fields__"
- src/prefect/exceptions.py:195: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:195: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:213: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:487: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:487: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:44: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:78: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note

... (truncated 4411 lines) ...

github-actions[bot] avatar Aug 15 '22 13:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:494: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:494: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:637: error: Need type annotation for "user_env"
+ paasta_tools/utils.py:637: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:1395: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"
+ paasta_tools/utils.py:2154: error: Incompatible return value type (got "Union[Dict[str, bool], Dict[<nothing>, <nothing>]]", expected "Dict[str, bool]")
+ paasta_tools/utils.py:2154: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, bool], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2333: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2333: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2336: error: Incompatible return value type (got "Union[Dict[str, ClusterAutoscalingResource], Dict[<nothing>, <nothing>]]", expected "Dict[str, ClusterAutoscalingResource]")
+ paasta_tools/utils.py:2336: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ClusterAutoscalingResource], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2372: error: Incompatible return value type (got "Union[Dict[str, ResourcePoolSettings], Dict[<nothing>, <nothing>]]", expected "Dict[str, ResourcePoolSettings]")
+ paasta_tools/utils.py:2372: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ResourcePoolSettings], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2545: error: No overload variant of "get" of "dict" matches argument types "str", "None"
+ paasta_tools/utils.py:2545: note: Possible overload variants:
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/utils.py:2545: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2576: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2576: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2685: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:2685: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/spark_tools.py:112: error: No overload variant of "get" of "dict" matches argument type "str"
+ paasta_tools/spark_tools.py:112: note: Possible overload variants:
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/spark_tools.py:112: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SparkConfig], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:655: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"; expected "SupportsKeysAndGetItem[str, object]"
+ paasta_tools/kubernetes_tools.py:869: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"
+ paasta_tools/kubernetes_tools.py:869: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ paasta_tools/kubernetes_tools.py:1181: error: No overload variant of "get" of "dict" matches argument types "str", "Dict[<nothing>, <nothing>]"
+ paasta_tools/kubernetes_tools.py:1181: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1181: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SidecarResourceRequirements], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1598: error: No overload variant of "get" of "dict" matches argument types "str", "int"
+ paasta_tools/kubernetes_tools.py:1598: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1598: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1607: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1607: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1607: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1616: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1616: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1616: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1896: error: Incompatible types in assignment (expression has type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]", variable has type "Mapping[str, Any]")
+ paasta_tools/kubernetes_tools.py:1896: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument "raw_selectors" to "raw_selectors_to_requirements" has incompatible type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]"; expected "Mapping[str, Any]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:275: error: Need type annotation for "spark_args"
+ paasta_tools/tron_tools.py:275: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:423: error: Need type annotation for "base_env"
+ paasta_tools/tron_tools.py:423: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/cli/cmds/logs.py:517: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/xcompile.py:31: error: Returning Any from function declared to return "str"

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.4f4fcc665d30413d259185052add6f7ed5946bdd
- src/urllib3/connection.py:237: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:463: error: Item "socket" of "Union[socket, Any]" has no attribute "server_hostname"  [union-attr]
- test/with_dummyserver/test_https.py:784: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 468, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2012, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2392, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 938, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 942, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1195, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2392, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4079, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4115, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2392, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3986, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2392, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1222, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3862, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1392, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1691, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1586, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4633, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4192, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1195, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2392, in visit_block
+     self.accept(s)
+   File "/checker.py", line 574, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1388, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3873, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3907, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1390, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1796, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1174, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

kopf (https://github.com/nolar/kopf)
+ kopf/_cogs/configs/conventions.py:268: error: Need type annotation for "current_keys"
+ kopf/_cogs/configs/conventions.py:268: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/conventions.py:272: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/progress.py:239: error: Need type annotation for "annotations"
+ kopf/_cogs/configs/progress.py:239: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/peering.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, Any], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:116: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:117: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:118: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:120: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:145: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:216: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/orion/utilities/schemas.py:280: error: "T" has no attribute "_reset_fields"
+ src/prefect/orion/utilities/schemas.py:280: error: "object" has no attribute "_reset_fields"
- src/prefect/orion/utilities/schemas.py:281: error: "T" has no attribute "__fields__"
+ src/prefect/orion/utilities/schemas.py:281: error: "object" has no attribute "__fields__"
- src/prefect/exceptions.py:195: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:195: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:213: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:487: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:487: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:44: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:78: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"
- src/prefect/client.py:230: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/client.py:230: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client.py:262: error: Self? has no attribute "status_code"
- src/prefect/client.py:268: error: Self? has no attribute "headers"
- src/prefect/client.py:281: error: Self? has no attribute "raise_for_status"
- src/prefect/task_runners.py:325: note:     def get(self, UUID) -> Optional[Any]
+ src/prefect/task_runners.py:325: note:     def [Self <: Dict[_KT, _VT]] get(self, UUID) -> Optional[Any]
- src/prefect/task_runners.py:325: note:     def [_T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
+ src/prefect/task_runners.py:325: note:     def [Self <: Dict[_KT, _VT], _T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
- src/prefect/task_runners.py:328: note:     def get(self, UUID) -> Optional[Any]
+ src/prefect/task_runners.py:328: note:     def [Self <: Dict[_KT, _VT]] get(self, UUID) -> Optional[Any]
- src/prefect/task_runners.py:328: note:     def [_T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
+ src/prefect/task_runners.py:328: note:     def [Self <: Dict[_KT, _VT], _T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
- src/prefect/context.py:306: error: Incompatible return value type (got "Optional[SettingsContext]", expected "SettingsContext")
+ src/prefect/context.py:306: error: Incompatible return value type (got "Optional[Self]", expected "SettingsContext")
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2720: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3673: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]

operator (https://github.com/canonical/operator)
+ ops/pebble.py:719: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:722: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:785: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:788: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:827: error: Need type annotation for "environment"
+ ops/pebble.py:827: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:834: error: Need type annotation for "on_check_failure"
+ ops/pebble.py:834: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
+ ops/charm.py:937: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:939: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:941: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:947: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _StorageMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:949: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ResourceMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:951: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _PayloadMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:952: error: Need type annotation for "extra_bindings"
+ ops/charm.py:952: error: Argum

... (truncated 4410 lines) ...

github-actions[bot] avatar Aug 15 '22 14:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:494: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:494: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:637: error: Need type annotation for "user_env"
+ paasta_tools/utils.py:637: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:1395: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"
+ paasta_tools/utils.py:2154: error: Incompatible return value type (got "Union[Dict[str, bool], Dict[<nothing>, <nothing>]]", expected "Dict[str, bool]")
+ paasta_tools/utils.py:2154: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, bool], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2333: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2333: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2336: error: Incompatible return value type (got "Union[Dict[str, ClusterAutoscalingResource], Dict[<nothing>, <nothing>]]", expected "Dict[str, ClusterAutoscalingResource]")
+ paasta_tools/utils.py:2336: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ClusterAutoscalingResource], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2372: error: Incompatible return value type (got "Union[Dict[str, ResourcePoolSettings], Dict[<nothing>, <nothing>]]", expected "Dict[str, ResourcePoolSettings]")
+ paasta_tools/utils.py:2372: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, ResourcePoolSettings], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2545: error: No overload variant of "get" of "dict" matches argument types "str", "None"
+ paasta_tools/utils.py:2545: note: Possible overload variants:
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/utils.py:2545: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/utils.py:2545: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2576: error: Incompatible return value type (got "Union[Dict[str, Any], Dict[<nothing>, <nothing>]]", expected "Dict[str, Any]")
+ paasta_tools/utils.py:2576: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/utils.py:2685: error: Incompatible return value type (got "Union[Dict[str, str], Dict[<nothing>, <nothing>]]", expected "Dict[str, str]")
+ paasta_tools/utils.py:2685: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/spark_tools.py:112: error: No overload variant of "get" of "dict" matches argument type "str"
+ paasta_tools/spark_tools.py:112: note: Possible overload variants:
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/spark_tools.py:112: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/spark_tools.py:112: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SparkConfig], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:655: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"; expected "SupportsKeysAndGetItem[str, object]"
+ paasta_tools/kubernetes_tools.py:869: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"
+ paasta_tools/kubernetes_tools.py:869: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ paasta_tools/kubernetes_tools.py:869: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ paasta_tools/kubernetes_tools.py:1181: error: No overload variant of "get" of "dict" matches argument types "str", "Dict[<nothing>, <nothing>]"
+ paasta_tools/kubernetes_tools.py:1181: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1181: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1181: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, SidecarResourceRequirements], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1598: error: No overload variant of "get" of "dict" matches argument types "str", "int"
+ paasta_tools/kubernetes_tools.py:1598: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1598: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1598: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1607: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1607: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1607: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1607: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1616: error: No overload variant of "get" of "dict" matches argument types "str", "bool"
+ paasta_tools/kubernetes_tools.py:1616: note: Possible overload variants:
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT]] get(self, <nothing>) -> <nothing>
+ paasta_tools/kubernetes_tools.py:1616: note:     def [Self <: Dict[_KT, _VT], _T] get(self, <nothing>, _T) -> _T
+ paasta_tools/kubernetes_tools.py:1616: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1896: error: Incompatible types in assignment (expression has type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]", variable has type "Mapping[str, Any]")
+ paasta_tools/kubernetes_tools.py:1896: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument "raw_selectors" to "raw_selectors_to_requirements" has incompatible type "Union[Dict[str, Union[str, Dict[str, Any]]], Dict[<nothing>, <nothing>]]"; expected "Mapping[str, Any]"
+ paasta_tools/kubernetes_tools.py:1917: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Union[str, Dict[str, Any]]], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:275: error: Need type annotation for "spark_args"
+ paasta_tools/tron_tools.py:275: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ paasta_tools/tron_tools.py:423: error: Need type annotation for "base_env"
+ paasta_tools/tron_tools.py:423: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ paasta_tools/cli/cmds/logs.py:517: error: Argument after ** must be a mapping, not "Union[Dict[Any, Any], Dict[Union[_KT, Any], Union[_VT_co, Any]]]"

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/xcompile.py:31: error: Returning Any from function declared to return "str"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.7bff020d3057ebde548e81ab6eddef4cf6f8ea14
- src/urllib3/connection.py:237: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:463: error: Item "socket" of "Union[socket, Any]" has no attribute "server_hostname"  [union-attr]
- test/with_dummyserver/test_https.py:784: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 467, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2009, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 937, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 941, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4076, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4112, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3983, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1222, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3859, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1392, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1691, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1586, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4633, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4192, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1388, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3870, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3904, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1390, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1787, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1166, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

kopf (https://github.com/nolar/kopf)
+ kopf/_cogs/configs/conventions.py:268: error: Need type annotation for "current_keys"
+ kopf/_cogs/configs/conventions.py:268: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/conventions.py:272: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_cogs/configs/progress.py:239: error: Need type annotation for "annotations"
+ kopf/_cogs/configs/progress.py:239: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, str], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/peering.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Mapping[str, Any], Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:116: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:117: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:118: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:119: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:120: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:145: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"
+ kopf/_core/engines/admission.py:216: error: Argument 2 to "get" of "Mapping" has incompatible type "RequestPayload"; expected "Union[RequestPayload, Mapping[_KT, _VT_co]]"

operator (https://github.com/canonical/operator)
+ ops/pebble.py:719: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:722: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:785: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ServiceDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:788: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _CheckDict], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:827: error: Need type annotation for "environment"
+ ops/pebble.py:827: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, str], Mapping[_KT, _VT_co]]"
+ ops/pebble.py:834: error: Need type annotation for "on_check_failure"
+ ops/pebble.py:834: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
+ ops/charm.py:937: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:939: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:941: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _RelationMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:947: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _StorageMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:949: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ResourceMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:951: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _PayloadMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:952: error: Need type annotation for "extra_bindings"
+ ops/charm.py:952: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Any], Mapping[_KT, _VT_co]]"
+ ops/charm.py:958: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, _ContainerMetaDict], Mapping[_KT, _VT_co]]"
+ ops/charm.py:1025: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"
+ ops/charm.py:1025: note: Possible overload variants:
+ ops/charm.py:1025: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1025: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ ops/charm.py:1051: error: No overload variant of "get" of "Mapping" matches argument types "str", "str"
+ ops/charm.py:1051: note: Possible overload variants:
+ ops/charm.py:1051: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1051: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[int, Self]) -> object
+ ops/charm.py:1078: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"
+ ops/charm.py:1078: note: Possible overload variants:
+ ops/charm.py:1078: note:     def [Self <: Mapping[_KT, _VT_co]] get(self, str) -> object
+ ops/charm.py:1078: note:     def [Self <: Mapping[_KT, _VT_co], _T] get(self, str, default: Union[str, Self]) -> object
+ ops/charm.py:1103: error: Need type annotation for "parameters"
+ ops/charm.py:1103: error: Argument 2 to "get" of "Mapping" has incompatible type "Dict[<nothing>, <nothing>]"; expected "Union[Dict[str, Dict[str, Union[Union[int, float], bool, str, Dict[str, Any], List[Any], Tuple[Any, ...]]]], Mapping[_KT, _VT_co]]"

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures.pyi:109: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2720: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3673: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.7bff020d3057ebde548e81ab6eddef4cf6f8ea14
+ tornado/tcpserver.py:391: : note: use --pdb to drop into pdb
- tornado/queues.py:384: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/queues.py:421: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/web.py:1692: error: Function does not return a value
- tornado/test/httpclient_test.py:693: error: Argument 1 to "assertGreaterEqual" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderGE[int]"
- tornado/test/httpclient_test.py:694: error: Argument 1 to "assertLess" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderLT[float]"
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 467, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2009, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 937, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 941, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_fu

... (truncated 4378 lines) ...

github-actions[bot] avatar Aug 15 '22 14:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/xcompile.py:31: error: Returning Any from function declared to return "str"

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_core/_fileio.py:120: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.4df63c26c26b8cccddb3e9ff967ec3bc6c91bf12
- src/urllib3/connection.py:237: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:463: error: Item "socket" of "Union[socket, Any]" has no attribute "server_hostname"  [union-attr]
- test/with_dummyserver/test_https.py:784: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 467, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2009, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 937, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 941, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4076, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4112, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3983, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1222, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3859, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1392, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1691, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1586, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4633, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4192, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1388, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3870, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3904, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1390, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1787, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1166, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

spark (https://github.com/apache/spark)
+ python/pyspark/sql/dataframe.py:2720: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/sql/dataframe.py:3673: error: Overloaded function implementation does not accept all possible arguments of signature 1  [misc]
+ python/pyspark/ml/linalg/__init__.py:560: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/linalg/__init__.py:626: error: Overloaded function implementation does not accept all possible arguments of signature 2  [misc]
+ python/pyspark/mllib/classification.py:102: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:242: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ python/pyspark/mllib/classification.py:599: error: Overloaded function implementation cannot produce return type of signature 1  [misc]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/orion/utilities/schemas.py:280: error: "T" has no attribute "_reset_fields"
+ src/prefect/orion/utilities/schemas.py:280: error: "object" has no attribute "_reset_fields"
- src/prefect/orion/utilities/schemas.py:281: error: "T" has no attribute "__fields__"
+ src/prefect/orion/utilities/schemas.py:281: error: "object" has no attribute "__fields__"
- src/prefect/exceptions.py:195: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:195: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:213: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls, cls: Type[type], object) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls, cls: Type[type], object) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:487: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:487: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:44: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:78: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"
- src/prefect/client.py:230: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/client.py:230: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client.py:262: error: Self? has no attribute "status_code"
- src/prefect/client.py:268: error: Self? has no attribute "headers"
- src/prefect/client.py:281: error: Self? has no attribute "raise_for_status"
- src/prefect/task_runners.py:325: note:     def get(self, UUID) -> Optional[Any]
+ src/prefect/task_runners.py:325: note:     def [Self <: Dict[_KT, _VT]] get(self, UUID) -> Optional[Any]
- src/prefect/task_runners.py:325: note:     def [_T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
+ src/prefect/task_runners.py:325: note:     def [Self <: Dict[_KT, _VT], _T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
- src/prefect/task_runners.py:328: note:     def get(self, UUID) -> Optional[Any]
+ src/prefect/task_runners.py:328: note:     def [Self <: Dict[_KT, _VT]] get(self, UUID) -> Optional[Any]
- src/prefect/task_runners.py:328: note:     def [_T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
+ src/prefect/task_runners.py:328: note:     def [Self <: Dict[_KT, _VT], _T] get(self, UUID, Union[Any, _T]) -> Union[Any, _T]
- src/prefect/context.py:306: error: Incompatible return value type (got "Optional[SettingsContext]", expected "SettingsContext")
+ src/prefect/context.py:306: error: Incompatible return value type (got "Optional[Self]", expected "SettingsContext")
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

tornado (https://github.com/tornadoweb/tornado)
+ tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.4df63c26c26b8cccddb3e9ff967ec3bc6c91bf12
+ tornado/tcpserver.py:391: : note: use --pdb to drop into pdb
- tornado/queues.py:384: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/queues.py:421: error: A function returning TypeVar should receive at least one argument containing the same Typevar
- tornado/web.py:1692: error: Function does not return a value
- tornado/test/httpclient_test.py:693: error: Argument 1 to "assertGreaterEqual" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderGE[int]"
- tornado/test/httpclient_test.py:694: error: Argument 1 to "assertLess" of "TestCase" has incompatible type "Optional[float]"; expected "SupportsDunderLT[float]"
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 191, in build
+     result = _build(
+   File "/build.py", line 275, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2882, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3266, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3367, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2310, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 467, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1129, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2009, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 813, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 937, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 941, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4076, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4112, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 3983, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1222, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3859, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1392, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1691, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1586, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4633, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4192, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1010, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1194, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1204, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2389, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1388, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3870, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3904, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4625, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 397, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 517, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1171, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1254, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1390, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1787, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1166, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures.pyi:109: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Expr], Optional[str], Node]", expected "Tuple[Hashable, ...]")
+ ibis/expr/types/core.py:103: error: Incompatible return value type (got "Tuple[Type[Self], Optional[str], Node]", expected "Tuple[Hashable, ...]")
- ibis/expr/types/relations.py:595: error: Argument 1 to "select" of "Table" has incompatible type "List[Optional[Expr]]"; expected "Union[Value, str, Iterable[Union[Value, str]]]"
+ ibis/expr/types/relations.py:595: error: Argument 1 to "select" of "Table" has incompatible type "List[Optional[Expr]]"; expected "Union[Value, Iterable[Union[Value, str]]]"
- ibis/backends/base/__init__.py:471: error: "Type[BaseBackend]" has no attribute "Options"
+ ibis/backends/base/__init__.py:471: error: "Type[Self]" has no attribute "Options"
+ ibis/expr/types/temporal.py:262: error: Signatures of "__rsub__" of "TimeValue" and "__sub__" of "Union[TimeValue, IntervalValue]" are unsafely overlapping

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/containers/array.py:84: note:     def pop(self, Any) -> Any
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT]] pop(self, Any) -> Any
- pylox/containers/array.py:84: note:     def [_T] pop(self, Any, Union[Any, _T]) -> Union[Any, _T]
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT], _T] pop(self, Any, Union[Any, _T]) -> Union[Any, _T]

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-al

... (truncated 4052 lines) ...

github-actions[bot] avatar Aug 15 '22 15:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/containers/array.py:84: note:     def pop(self, Any, /) -> Any
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT]] pop(self, Any, /) -> Any
- pylox/containers/array.py:84: note:     def [_T] pop(self, Any, Union[Any, _T], /) -> Union[Any, _T]
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT], _T] pop(self, Any, Union[Any, _T], /) -> Union[Any, _T]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:731: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.980+dev.c658293ef1b354baadd9ef9ed9e48d331d05e0a6
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 186, in build
+     result = _build(
+   File "/build.py", line 269, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2875, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3259, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3360, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2302, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1131, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2037, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2428, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 810, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 935, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 939, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2428, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4139, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4175, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2428, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4046, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2428, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1224, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3923, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4642, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 406, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 526, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1176, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1259, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1399, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1698, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1593, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4650, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4196, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2428, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1390, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3934, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3968, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4642, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 406, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 526, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1176, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1259, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1397, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 105, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 46, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 262, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 138, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1496: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1496: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1497: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1497: note: Possible overload variants:
- discord/flags.py:1497: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1497: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1581: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1581: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1583: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1585: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1585: note: Possible overload variants:
- discord/flags.py:1585: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1585: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1592: note: Possible overload variants:
- discord/flags.py:1592: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1592: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://my

... (truncated 3982 lines) ...

github-actions[bot] avatar Aug 30 '22 15:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:49:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1052: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1052: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:290: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:290: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:295: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:300: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:300: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:305: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:310: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:315: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:315: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:323: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:323: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:328: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:328: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:333: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:333: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:340: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:340: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:347: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:347: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:354: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:354: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:361: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:361: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:366: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:366: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:371: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:371: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:376: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:376: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:385: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:385: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:393: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:101: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:101: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:109: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/utils.py:764: error: "__new__" must return a class instance (got Self?)
- discord/utils.py:764: error: Variable "typing_extensions.Self" is not valid as a type
- discord/utils.py:764: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/player.py:411: error: Variable "typing_extensions.Self" is not valid as a type
- discord/player.py:411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:250: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:353: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:353: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:377: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:377: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:408: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:408: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:449: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:449: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:514: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:514: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:543: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:543: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:569: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:569: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:598: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:598: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:631: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:631: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:647: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:647: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:676: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:676: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:97: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:97: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:189: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:189: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/automod.py:197: error: Argument "presets" to "AutoModTrigger" has incompatible type "Self"; expected "Optional[AutoModPresets]"
- discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Union[_AutoModerationTriggerMetadataKeyword, _AutoModerationTriggerMetadataKeywordPreset, _AutoModerationTriggerMetadataMentionLimit, Empty, None]"
+ discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Optional[Empty]"
- discord/automod.py:342: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:342: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:219: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:219: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:228: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:239: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:239: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:250: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:279: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:279: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:288: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:288: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:299: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:299: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:310: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:319: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:319: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:365: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:365: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:425: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:425: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:453: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:453: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:488: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:488: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/scheduled_event.py:144: error: Argument 1 to "store_user" of "ConnectionState" has incompatible type "object"; expected "Union[User, PartialUser]"
+ discord/scheduled_event.py:144: error: Argument 1 to "store_user" of "ConnectionState" has incompatible type "object"; expected "PartialUser"
- discord/partial_emoji.py:109: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/partial_emoji.py:117: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:117: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/partial_emoji.py:178: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/welcome_screen.py:156: error: Variable "typing_extensions.Self" is not valid as a type
- discord/welcome_screen.py:156: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:430: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:430: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:454: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:454: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:519: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:519: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/components.py:88: error: Variable "typing_extensions.Self" is not valid as a type
- discord/components.py:88: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/components.py:388: error: Incompatible types in assignment (expression has type "None", variable has type "PartialEmoji")
- discord/gateway.py:356: error: Variable "typing_extensions.Self" is not valid as a type
- discord/gateway.py:356: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/gateway.py:868: error: Variable "typing_extensions.Self" is not valid as a type
- discord/gateway.py:868: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/voice_client.py:365: error: Self? has no attribute "secret_key"
- discord/voice_client.py:366: error: Self? has no attribute "poll_event"
- discord/user.py:123: error: Variable "typing_extensions.Self" is not valid as a type
- discord/user.py:123: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/user.py:126: error: Self? has no attribute "name"
- discord/user.py:127: error: Self? has no attribute "id"
- discord/user.py:128: error: Self? has no attribute "discriminator"
- discord/user.py:129: error: Self? has no attribute "_avatar"
- discord/user.py:130: error: Self? has no attribute "_banner"
- discord/user.py:131: error: Self? has no attribute "_accent_colour"
- discord/user.py:132: error: Self? has no attribute "bot"
- discord/user.py:133: error: Self? has no attribute "_state"
- discord/user.py:134: error: Self? has no attribute "_public_flags"
- discord/user.py:350: error: Argument 1 of "_update" is incompatible with supertype "BaseUser"; supertype defines the argument type as "Union[User, PartialUser]"
+ discord/user.py:350: error: Argument 1 of "_update" is incompatible with supertype "BaseUser"; supertype defines the argument type as "PartialUser"
- discord/member.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:201: error: Self? has no attribute "_status"
- discord/member.py:203: error: Self? has no attribute "desktop"
- discord/member.py:204: error: Self? has no attribute "mobile"
- discord/member.py:205: error: Self? has no attribute "web"
- discord/member.py:382: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:382: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:396: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:396: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:407: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:407: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:410: error: Self? has no attribute "_roles"
- discord/member.py:411: error: Self? has no attribute "joined_at"
- discord/member.py:412: error: Self? has no attribute "premium_since"
- discord/member.py:413: error: Self? has no attribute "_client_status"
- discord/member.py:414: error: Self? has no attribute "guild"
- discord/member.py:415: 

... (truncated 4488 lines) ...

github-actions[bot] avatar Sep 11 '22 13:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1052: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1052: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:290: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:290: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:295: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:300: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:300: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:305: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:310: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:315: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:315: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:323: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:323: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:328: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:328: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:333: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:333: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:340: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:340: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:347: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:347: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:354: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:354: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:361: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:361: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:366: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:366: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:371: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:371: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:376: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:376: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:385: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:385: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:393: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:101: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:101: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:109: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/utils.py:764: error: "__new__" must return a class instance (got Self?)
- discord/utils.py:764: error: Variable "typing_extensions.Self" is not valid as a type
- discord/utils.py:764: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/player.py:411: error: Variable "typing_extensions.Self" is not valid as a type
- discord/player.py:411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:250: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:353: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:353: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:377: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:377: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:408: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:408: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:449: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:449: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:514: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:514: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:543: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:543: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:569: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:569: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:598: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:598: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:631: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:631: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:647: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:647: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:676: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:676: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:97: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:97: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:189: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:189: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/automod.py:197: error: Argument "presets" to "AutoModTrigger" has incompatible type "Self"; expected "Optional[AutoModPresets]"
- discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Union[_AutoModerationTriggerMetadataKeyword, _AutoModerationTriggerMetadataKeywordPreset, _AutoModerationTriggerMetadataMentionLimit, Empty, None]"
+ discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Optional[Empty]"
- discord/automod.py:342: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:342: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:219: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:219: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:228: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:239: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:239: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:250: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:279: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:279: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:288: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:288: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:299: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:299: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:310: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:319: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:319: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:365: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:365: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:425: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:425: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:453: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:453: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:488: error: Variable "typing_extensions.Self" is not valid as a type
- discord/asset.py:488: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/scheduled_event.py:144: error: Argument 1 to "store_user" of "ConnectionState" has incompatible type "object"; expected "Union[User, PartialUser]"
+ discord/scheduled_event.py:144: error: Argument 1 to "store_user" of "ConnectionState" has incompatible type "object"; expected "PartialUser"
- discord/partial_emoji.py:109: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/partial_emoji.py:117: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:117: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/partial_emoji.py:178: error: Variable "typing_extensions.Self" is not valid as a type
- discord/partial_emoji.py:178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/welcome_screen.py:156: error: Variable "typing_extensions.Self" is not valid as a type
- discord/welcome_screen.py:156: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:430: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:430: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:454: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:454: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/invite.py:519: error: Variable "typing_extensions.Self" is not valid as a type
- discord/invite.py:519: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/components.py:88: error: Variable "typing_extensions.Self" is not valid as a type
- discord/components.py:88: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/components.py:388: error: Incompatible types in assignment (expression has type "None", variable has type "PartialEmoji")
- discord/gateway.py:356: error: Variable "typing_extensions.Self" is not valid as a type
- discord/gateway.py:356: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/gateway.py:868: error: Variable "typing_extensions.Self" is not valid as a type
- discord/gateway.py:868: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/voice_client.py:365: error: Self? has no attribute "secret_key"
- discord/voice_client.py:366: error: Self? has no attribute "poll_event"
- discord/user.py:123: error: Variable "typing_extensions.Self" is not valid as a type
- discord/user.py:123: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/user.py:126: error: Self? has no attribute "name"
- discord/user.py:127: error: Self? has no attribute "id"
- discord/user.py:128: error: Self? has no attribute "discriminator"
- discord/user.py:129: error: Self? has no attribute "_avatar"
- discord/user.py:130: error: Self? has no attribute "_banner"
- discord/user.py:131: error: Self? has no attribute "_accent_colour"
- discord/user.py:132: error: Self? has no attribute "bot"
- discord/user.py:133: error: Self? has no attribute "_state"
- discord/user.py:134: error: Self? has no attribute "_public_flags"
- discord/user.py:350: error: Argument 1 of "_update" is incompatible with supertype "BaseUser"; supertype defines the argument type as "Union[User, PartialUser]"
+ discord/user.py:350: error: Argument 1 of "_update" is incompatible with supertype "BaseUser"; supertype defines the argument type as "PartialUser"
- discord/member.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:201: error: Self? has no attribute "_status"
- discord/member.py:203: error: Self? has no attribute "desktop"
- discord/member.py:204: error: Self? has no attribute "mobile"
- discord/member.py:205: error: Self? has no attribute "web"
- discord/member.py:382: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:382: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:396: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:396: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:407: error: Variable "typing_extensions.Self" is not valid as a type
- discord/member.py:407: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/member.py:410: error: Self? has no attribute "_roles"
- discord/member.py:411: error: Self? has no attribute "joined_at"
- discord/member.py:412: error: Self? has no attribute "premium_since"
- discord/member.py:413: error: Self? has no attribute "_client_status"
- discord/member.py:414: error: Self? has no attribute "guild"
- discord/member.py:415: 

... (truncated 4489 lines) ...

github-actions[bot] avatar Sep 13 '22 00:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1052: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1052: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/similar.py:352: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:354: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:355: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:356: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:357: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:358: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:381: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:382: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:383: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:384: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:393: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:480: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:483: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:508: error: Cannot determine type of "namespace"  [has-type]
+ pylint/checkers/similar.py:532: error: Cannot determine type of "namespace"  [has-type]

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/exceptions.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:142: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:142: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:239: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/exceptions.py:239: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/exceptions.py:257: error: Cannot instantiate type "Type[Self?]"
- src/prefect/docker.py:218: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/docker.py:218: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ src/prefect/utilities/pydantic.py:155: error: Self is not enclosed in a class
- src/prefect/utilities/pydantic.py:155: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/utilities/pydantic.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:158: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:158: note:     def __new__(cls: Type[type], object, /) -> type
+ src/prefect/utilities/pydantic.py:158: note:     def [Self <: type] __new__(cls: Type[type], object, /) -> type
- src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Self?]"
+ src/prefect/utilities/pydantic.py:160: error: No overload variant matches argument type "Type[Any]"
- src/prefect/utilities/pydantic.py:160: note:     def __new__(cls: Type[type], object, /) -> type
+ src/prefect/utilities/pydantic.py:160: note:     def [Self <: type] __new__(cls: Type[type], object, /) -> type
- src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Self?], KwArg(Any)], Self?]", variable has type overloaded function)
+ src/prefect/utilities/pydantic.py:163: error: Incompatible types in assignment (expression has type "Callable[[Type[Any], KwArg(Any)], Any]", variable has type overloaded function)
- src/prefect/software/pip.py:25: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/pip.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/pip.py:34: error: "Type[Self?]" has no attribute "validate"
- src/prefect/blocks/core.py:563: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:563: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/core.py:817: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/core.py:817: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/core.py:825: error: Unsupported argument 2 for "super"
- src/prefect/blocks/core.py:836: error: Unsupported argument 2 for "super"
- src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Settings", "None"
+ src/prefect/settings.py:640: error: No overload variant of "getattr" matches argument types "Self", "None"
- src/prefect/software/python.py:26: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/python.py:37: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/python.py:41: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/python.py:41: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:49: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/blocks/kubernetes.py:49: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/blocks/kubernetes.py:83: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:118: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:133: error: Cannot instantiate type "Type[Self?]"
- src/prefect/software/conda.py:141: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/software/conda.py:141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/software/conda.py:178: error: Cannot instantiate type "Type[Self?]"
+ src/prefect/infrastructure/base.py:96: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Dict[str, Optional[str]]"; expected "SupportsKeysAndGetItem[str, str]"
- src/prefect/infrastructure/base.py:88: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/infrastructure/base.py:88: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/infrastructure/base.py:90: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/infrastructure/base.py:90: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/infrastructure/base.py:94: error: Self? has no attribute "copy"
- src/prefect/infrastructure/base.py:96: error: Self? has no attribute "_base_flow_run_environment"
- src/prefect/infrastructure/base.py:96: error: Self? has no attribute "env"
- src/prefect/infrastructure/base.py:97: error: Self? has no attribute "_base_flow_run_labels"
- src/prefect/infrastructure/base.py:97: error: Self? has no attribute "labels"
- src/prefect/infrastructure/base.py:98: error: Self? has no attribute "name"
- src/prefect/infrastructure/base.py:99: error: Self? has no attribute "command"
- src/prefect/infrastructure/base.py:99: error: Self? has no attribute "_base_flow_run_command"
- src/prefect/client.py:228: error: Variable "typing_extensions.Self" is not valid as a type
- src/prefect/client.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- src/prefect/client.py:260: error: Self? has no attribute "status_code"
- src/prefect/client.py:266: error: Self? has no attribute "headers"
- src/prefect/client.py:279: error: Self? has no attribute "raise_for_status"
- src/prefect/context.py:309: error: Incompatible return value type (got "Optional[SettingsContext]", expected "SettingsContext")
+ src/prefect/context.py:309: error: Incompatible return value type (got "Optional[Self]", expected "SettingsContext")
- src/prefect/packaging/docker.py:121: error: Self? has no attribute "add_line"
- src/prefect/packaging/docker.py:125: error: Self? has no attribute "write_text"
- src/prefect/packaging/docker.py:128: error: Self? has no attribute "build"

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:731: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

Expression (https://github.com/cognitedata/Expression)
+ expression/core/option.py:237: error: Incompatible return value type (got "object", expected "Option[_TSource]")
- expression/extra/parser.py:70: error: Argument 1 to "or_else" has incompatible type "Parser[_A]"; expected "Parser[_A]"
+ expression/extra/parser.py:70: error: Argument 1 to "or_else" has incompatible type "Self"; expected "Parser[_A]"

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/containers/array.py:84: note:     def pop(self, Any, /) -> Any
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT]] pop(self, Any, /) -> Any
- pylox/containers/array.py:84: note:     def [_T] pop(self, Any, Union[Any, _T], /) -> Union[Any, _T]
+ pylox/containers/array.py:84: note:     def [Self <: Dict[_KT, _VT], _T] pop(self, Any, Union[Any, _T], /) -> Union[Any, _T]

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "ty

... (truncated 4552 lines) ...

github-actions[bot] avatar Sep 13 '22 15:09 github-actions[bot]

Why do you need to wait for mypy primer before working on the unit tests? Looks like mypy primer already gives enough info, plus tests also give a lot of spam.

PerchunPak avatar Sep 16 '22 13:09 PerchunPak

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/containers/array.py:84: note:     def pop(self, Any, /) -> Any
+ pylox/containers/array.py:84: note:     def [] pop(self, Any, /) -> Any

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.990+dev.427deafe15703f414d3b5f1e12311902ce665df1
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 188, in build
+     result = _build(
+   File "/build.py", line 271, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2885, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3269, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3370, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2302, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1131, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2038, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 810, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 935, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 939, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4151, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4187, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4058, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1224, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3935, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4651, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 406, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 526, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1177, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1260, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1400, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1699, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1594, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4659, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4201, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1390, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3946, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3980, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4651, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 406, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 526, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1177, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1260, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1398, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 122, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 55, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 279, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 155, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readt

... (truncated 4479 lines) ...

github-actions[bot] avatar Sep 17 '22 00:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.990+dev.12b3f2a46ec1e4dffebeaf788c2fbf68c0a930a7
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 188, in build
+     result = _build(
+   File "/build.py", line 271, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2885, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3269, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3370, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2302, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1131, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2038, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 810, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 935, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 939, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4151, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4187, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4058, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1224, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3935, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1401, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1700, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1595, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4662, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4204, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1390, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3946, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3980, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1399, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 122, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 55, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 279, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 155, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid a

... (truncated 4438 lines) ...

github-actions[bot] avatar Sep 17 '22 15:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: bool = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[False] = ..., delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Optional[Message]]
- tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, int, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
+ tanjun/context/slash.py:835: note:          def respond(self, content: Union[Any, UndefinedType] = ..., *, ensure_result: Literal[True], delete_after: Union[timedelta, float, None] = ..., attachment: Union[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]], UndefinedType] = ..., attachments: Union[Sequence[Union[Resource[Any], Union[PathLike[str], str], Union[bytes, bytearray, memoryview, BytesIO, StringIO]]], UndefinedType] = ..., component: Union[ComponentBuilder, UndefinedType] = ..., components: Union[Sequence[ComponentBuilder], UndefinedType] = ..., embed: Union[Embed, UndefinedType] = ..., embeds: Union[Sequence[Embed], UndefinedType] = ..., mentions_everyone: Union[bool, UndefinedType] = ..., user_mentions: Union[Sequence[Union[PartialUser, Union[Snowflake, int]]], bool, UndefinedType] = ..., role_mentions: Union[Sequence[Union[PartialRole, Union[Snowflake, int]]], bool, UndefinedType] = ...) -> Coroutine[Any, Any, Message]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.990+dev.4b90b51604459138cf495b89b3e31f843a9affd5
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 188, in build
+     result = _build(
+   File "/build.py", line 271, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2885, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3269, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3370, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2302, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1131, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2038, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 810, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 935, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 939, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4151, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4187, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4058, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1224, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3935, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1401, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1700, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1595, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4662, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4204, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1390, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3946, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3980, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1399, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 122, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 55, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 279, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 155, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:290: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:290: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:295: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:300: error: Variable "typing_exten

... (truncated 4438 lines) ...

github-actions[bot] avatar Sep 19 '22 18:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std.py:54:20: note: "parse_node" is considered instance variable, to make it class variable use ClassVar[...]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.990+dev.49e4d66ac88b75df4444a5ed458e457aa0820c3c
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 193, in build
+     result = _build(
+   File "/build.py", line 276, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2890, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3274, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3375, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2307, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 462, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1131, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2038, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 810, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 935, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 939, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1504, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4151, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4187, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1456, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4058, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1224, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 3935, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1401, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1700, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1595, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4662, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2088, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4204, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1003, in check_func_item
+     self.check_func_def(defn, typ, name)
+   File "/checker.py", line 1189, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1206, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2457, in visit_block
+     self.accept(s)
+   File "/checker.py", line 570, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1390, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 3946, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 3980, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4654, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1399, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 122, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 55, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 279, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 155, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"
- discord/permissions.py:187: error: Self? has no attribute "value"
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:290: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:290: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:295: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:300: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:300: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:305: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:310: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:315: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:315: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:323: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:323: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:328: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:328: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:333: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:333: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:340: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:340: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:347: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:347: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:354: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:354: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:361: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:361: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:366: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:366: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:371: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:371: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:376: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:376: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:385: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:385: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:393: error: Variable "typing_extensions.Self" is not valid as a type
- discord/colour.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:101: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:101: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:109: error: Variable "typing_extensions.Self" is not valid as a type
- discord/mentions.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/utils.py:764: error: "__new__" must return a class instance (got Self?)
- discord/utils.py:764: error: Variable "typing_extensions.Self" is not valid as a type
- discord/utils.py:764: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/player.py:411: error: Variable "typing_extensions.Self" is not valid as a type
- discord/player.py:411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:198: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:250: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:353: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:353: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:377: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:377: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:408: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:408: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:449: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:449: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:514: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:514: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:543: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:543: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:569: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:569: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:598: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:598: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:631: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:631: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:647: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:647: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:676: error: Variable "typing_extensions.Self" is not valid as a type
- discord/embeds.py:676: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:97: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:97: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/automod.py:189: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:189: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ discord/automod.py:197: error: Argument "presets" to "AutoModTrigger" has incompatible type "Self"; expected "Optional[AutoModPresets]"
- discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Union[_AutoModerationTriggerMetadataKeyword, _AutoModerationTriggerMetadataKeywordPreset, _AutoModerationTriggerMetadataMentionLimit, Empty, None]"
+ discord/automod.py:262: error: Argument "data" to "from_data" of "AutoModTrigger" has incompatible type "object"; expected "Optional[Empty]"
- discord/automod.py:342: error: Variable "typing_extensions.Self" is not valid as a type
- discord/automod.py:342: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/asset.py:219:

... (truncated 4575 lines) ...

github-actions[bot] avatar Sep 25 '22 16:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"  [arg-type]
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"  [arg-type]
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/core/strings.pyi:42: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [misc]
- pandas-stubs/core/frame.pyi:118: error: Overloaded function signatures 1 and 3 overlap with incompatible return types  [misc]
- pandas-stubs/core/frame.pyi:118: error: Overloaded function signatures 1 and 4 overlap with incompatible return types  [misc]
- pandas-stubs/core/frame.pyi:118: error: Overloaded function signatures 1 and 5 overlap with incompatible return types  [misc]
- pandas-stubs/core/frame.pyi:122: error: Overloaded function signatures 3 and 5 overlap with incompatible return types  [misc]
- pandas-stubs/core/frame.pyi:124: error: Overloaded function signatures 4 and 5 overlap with incompatible return types  [misc]
+ pandas-stubs/core/groupby/generic.pyi:146: error: Unused "type: ignore" comment
- pandas-stubs/_libs/tslibs/timestamps.pyi:167: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]
+ tests/test_frame.py:253: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:253: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:253: note: Possible overload variants:
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:254: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:254: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:254: note: Possible overload variants:
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:255: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:255: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:255: note: Possible overload variants:
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:256: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:256: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:256: note: Possible overload variants:
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:259: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/test_frame.py:259: error: No overload variant of "drop" of "DataFrame" matches argument types "List[int]", "bool"  [call-overload]
+ tests/test_frame.py:259: note: Possible overload variants:
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:261: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:261: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:261: note: Possible overload variants:
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [misc]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [misc]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [misc]

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"  [attr-defined]
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"  [attr-defined]
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"  [attr-defined]
- discord/permissions.py:187: error: Self? has no attribute "value"  [attr-defined]
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"  [attr-defined]
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"  [attr-defined]
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"  [attr-defined]
- discord/permissions.py:198: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:224: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:224: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:237: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:246: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:246: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:261: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:267: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:267: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:276: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:292: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:292: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:313: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:794: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:794: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:270: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:275: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:275: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:280: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:285: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:285: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:290: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:290: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:295: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:295: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:300: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:300: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:305: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:310: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:315: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:315: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:323: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:323: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:328: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:328: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:333: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:333: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:340: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:340: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:347: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:347: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:354: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:354: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:361: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:361: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:366: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:366: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:371: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:371: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:376: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:376: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:385: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:385: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:393: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:101: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/mentions.py:101: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/mentions.py:109: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/mentions.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/utils.py:764: error: "__new__" must return a class instance (got Self?)  [misc]
- discord/utils.py:764: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/utils.py:764: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/player.py:411: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/player.py:411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:198: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:198: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:353: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:353: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:377: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:377: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:408: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:449: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:449: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:514: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:514: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:543: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:543: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:569: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/embeds.py:569: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/embeds.py:598: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/e

... (truncated 4993 lines) ...

github-actions[bot] avatar Sep 30 '22 22:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"  [arg-type]
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"  [arg-type]
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1061: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]
+ ops/framework.py:1061: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/core/strings.pyi:42: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [misc]
+ pandas-stubs/core/groupby/generic.pyi:147: error: Unused "type: ignore" comment
- pandas-stubs/_libs/tslibs/timestamps.pyi:167: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]
+ tests/test_frame.py:253: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:253: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:253: note: Possible overload variants:
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:254: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:254: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:254: note: Possible overload variants:
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:255: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:255: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:255: note: Possible overload variants:
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:256: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:256: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:256: note: Possible overload variants:
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:259: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/test_frame.py:259: error: No overload variant of "drop" of "DataFrame" matches argument types "List[int]", "bool"  [call-overload]
+ tests/test_frame.py:259: note: Possible overload variants:
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:261: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:261: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:261: note: Possible overload variants:
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Path], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
+ tanjun/dependencies/reloaders.py:375: error: Argument 1 to "filter" has incompatible type "Callable[[Self], bool]"; expected "Callable[[Self], TypeGuard[bool]]"  [arg-type]
- tanjun/dependencies/limiters.py:513: error: Only concrete class can be given where "Type[AbstractCooldownManager]" is expected  [type-abstract]
- tanjun/dependencies/limiters.py:865: error: Only concrete class can be given where "Type[AbstractConcurrencyLimiter]" is expected  [type-abstract]
- tanjun/clients.py:754: error: Only concrete class can be given where "Type[Client]" is expected  [type-abstract]

pylox (https://github.com/sco1/pylox)
- pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:10: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]
- pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "AstPrinter"; expected "VisitorProtocol"  [arg-type]
+ pylox/ast_printer.py:17: error: Argument 1 to "accept" of "Expr" has incompatible type "Self"; expected "VisitorProtocol"  [arg-type]

urllib3 (https://github.com/urllib3/urllib3)
+ /tmp/mypy_primer/projects/_urllib3_venv/lib/python3.10/site-packages/tornado/tcpserver.py:391: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.990+dev.dbd29b6cd8dcdf2a6e8502e25aed467b8e6b1851
- src/urllib3/connection.py:239: note: "_tunnel" is considered instance variable, to make it class variable use ClassVar[...]
- test/with_dummyserver/test_https.py:882: error: Item "socket" of "Union[socket, Any]" has no attribute "version"  [union-attr]
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 95, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 174, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 193, in build
+     result = _build(
+   File "/build.py", line 276, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2889, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3273, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3374, in process_stale_scc
+     graph[id].type_check_first_pass()
+   File "/build.py", line 2309, in type_check_first_pass
+     self.type_checker().check_first_pass()
+   File "/checker.py", line 465, in check_first_pass
+     self.accept(d)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1143, in accept
+     return visitor.visit_class_def(self)
+   File "/checker.py", line 2123, in visit_class_def
+     self.accept(defn.defs)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1218, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2560, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 822, in accept
+     return visitor.visit_func_def(self)
+   File "/checker.py", line 938, in visit_func_def
+     self._visit_func_def(defn)
+   File "/checker.py", line 942, in _visit_func_def
+     self.check_func_item(defn, name=defn.name)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name, allow_empty)
+   File "/checker.py", line 1199, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1218, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2560, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1516, in accept
+     return visitor.visit_try_stmt(self)
+   File "/checker.py", line 4259, in visit_try_stmt
+     self.visit_try_without_finally(s, try_frame=bool(s.finally_body))
+   File "/checker.py", line 4295, in visit_try_without_finally
+     self.accept(s.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1218, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2560, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1468, in accept
+     return visitor.visit_if_stmt(self)
+   File "/checker.py", line 4166, in visit_if_stmt
+     self.accept(b)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1218, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2560, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1236, in accept
+     return visitor.visit_expression_stmt(self)
+   File "/checker.py", line 4043, in visit_expression_stmt
+     expr_type = self.expr_checker.accept(s.expr, allow_none_return=True, always_allow_any=True)
+   File "/checkexpr.py", line 4655, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1401, in check_callable_call
+     callee = self.infer_function_type_arguments(
+   File "/checkexpr.py", line 1700, in infer_function_type_arguments
+     arg_types = self.infer_arg_types_in_context(
+   File "/checkexpr.py", line 1595, in infer_arg_types_in_context
+     res[ai] = self.accept(args[ai], callee.arg_types[i])
+   File "/checkexpr.py", line 4663, in accept
+     typ = node.accept(self)
+   File "/nodes.py", line 2100, in accept
+     return visitor.visit_lambda_expr(self)
+   File "/checkexpr.py", line 4205, in visit_lambda_expr
+     self.chk.check_func_item(e, type_override=type_override)
+   File "/checker.py", line 1011, in check_func_item
+     self.check_func_def(defn, typ, name, allow_empty)
+   File "/checker.py", line 1199, in check_func_def
+     self.accept(item.body)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1218, in accept
+     return visitor.visit_block(self)
+   File "/checker.py", line 2560, in visit_block
+     self.accept(s)
+   File "/checker.py", line 573, in accept
+     stmt.accept(self)
+   File "/nodes.py", line 1402, in accept
+     return visitor.visit_return_stmt(self)
+   File "/checker.py", line 4054, in visit_return_stmt
+     self.check_return_stmt(s)
+   File "/checker.py", line 4088, in check_return_stmt
+     self.expr_checker.accept(
+   File "/checkexpr.py", line 4655, in accept
+     typ = self.visit_call_expr(node, allow_none_return=True)
+   File "/checkexpr.py", line 407, in visit_call_expr
+     return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+   File "/checkexpr.py", line 527, in visit_call_expr_inner
+     ret_type = self.check_call_expr_with_callee_type(
+   File "/checkexpr.py", line 1178, in check_call_expr_with_callee_type
+     ret_type, callee_type = self.check_call(
+   File "/checkexpr.py", line 1261, in check_call
+     return self.check_callable_call(
+   File "/checkexpr.py", line 1399, in check_callable_call
+     callee = freshen_function_type_vars(callee)
+   File "/expandtype.py", line 122, in freshen_function_type_vars
+     fresh = cast(CallableType, expand_type(callee, tvmap)).copy_modified(variables=tvs)
+   File "/expandtype.py", line 55, in expand_type
+     return typ.accept(ExpandTypeVisitor(env))
+   File "/types.py", line 1827, in accept
+     return visitor.visit_callable_type(self)
+   File "/expandtype.py", line 279, in visit_callable_type
+     ret_type=t.ret_type.accept(self),
+   File "/types.py", line 1170, in accept
+     return visitor.visit_erased_type(self)
+   File "/expandtype.py", line 155, in visit_erased_type
+     raise RuntimeError()
+ RuntimeError: 

discord.py (https://github.com/Rapptz/discord.py)
- discord/enums.py:100: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/enums.py:100: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:56: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:56: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:122: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:122: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:123: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:125: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:125: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:126: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:128: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:128: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:129: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:131: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:131: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:132: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:135: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:135: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:136: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:140: error: Self? has no attribute "value"  [attr-defined]
- discord/flags.py:143: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1505: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1506: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1506: note: Possible overload variants:
- discord/flags.py:1506: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1506: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1590: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1590: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1592: error: "Type[Self?]" has no attribute "VALID_FLAGS"  [attr-defined]
- discord/flags.py:1594: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1594: note: Possible overload variants:
- discord/flags.py:1594: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1594: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/flags.py:1599: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/flags.py:1599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/flags.py:1601: error: No overload variant of "__new__" of "type" matches argument type "Type[Self?]"  [call-overload]
- discord/flags.py:1601: note: Possible overload variants:
- discord/flags.py:1601: note:     def __new__(cls: Type[type], object, /) -> type
- discord/flags.py:1601: note:     def [Self] __new__(cls: Type[Self], str, Tuple[type, ...], Dict[str, Any], /, **kwds: Any) -> Self
- discord/permissions.py:170: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:176: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:176: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:185: error: Self? has no attribute "view_channel"  [attr-defined]
- discord/permissions.py:186: error: Self? has no attribute "read_message_history"  [attr-defined]
- discord/permissions.py:187: error: Self? has no attribute "value"  [attr-defined]
- discord/permissions.py:190: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:192: error: Self? has no attribute "read_messages"  [attr-defined]
- discord/permissions.py:193: error: Self? has no attribute "send_tts_messages"  [attr-defined]
- discord/permissions.py:194: error: Self? has no attribute "manage_messages"  [attr-defined]
- discord/permissions.py:195: error: Self? has no attribute "create_private_threads"  [attr-defined]
- discord/permissions.py:196: error: Self? has no attribute "create_public_threads"  [attr-defined]
- discord/permissions.py:197: error: Self? has no attribute "manage_threads"  [attr-defined]
- discord/permissions.py:198: error: Self? has no attribute "send_messages_in_threads"  [attr-defined]
- discord/permissions.py:202: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:202: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:228: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:241: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:241: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:250: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:250: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:265: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:271: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:271: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:280: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:280: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:296: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:296: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:317: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:317: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/permissions.py:798: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/permissions.py:798: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:162: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:162: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:167: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:167: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:173: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:173: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:211: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:216: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:216: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:237: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:242: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:242: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:247: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:247: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:255: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:255: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:260: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:260: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py:265: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- discord/colour.py:265: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- discord/colour.py

... (truncated 4901 lines) ...

github-actions[bot] avatar Oct 02 '22 15:10 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[_GeneratorContextManager[_T_co], Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]
+ pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[Self, Callable[..., Iterator[_T_co]], Tuple[Any, ...], Dict[str, Any]], None]")  [assignment]

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcrtpreceiver.py:498: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
- src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str, None]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]
+ src/aiortc/rtcpeerconnection.py:92: error: Invalid index type "Union[int, str]" for "Dict[int, RTCRtpCodecParameters]"; expected type "int"  [index]

operator (https://github.com/canonical/operator)
- ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Object"; expected "_Serializable"  [arg-type]
+ ops/framework.py:445: error: Argument 1 to "_track" of "Framework" has incompatible type "Self"; expected "_Serializable"  [arg-type]
- ops/framework.py:445: note: "Object" is missing following "_Serializable" protocol members:
- ops/framework.py:445: note:     restore, snapshot
- ops/framework.py:1069: error: Invalid signature "Callable[[BoundStoredState, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]
+ ops/framework.py:1069: error: Invalid signature "Callable[[Self, Literal['on']], ObjectEvents]" for "__getattr__"  [misc]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/core/strings.pyi:42: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [misc]
- pandas-stubs/_libs/tslibs/timestamps.pyi:167: error: Overloaded function signatures 1 and 2 overlap with incompatible return types  [misc]
+ tests/test_frame.py:253: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:253: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:253: note: Possible overload variants:
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:253: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:254: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:254: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:254: note: Possible overload variants:
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:254: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:255: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:255: error: No overload variant of "drop" of "DataFrame" matches argument type "List[int]"  [call-overload]
+ tests/test_frame.py:255: note: Possible overload variants:
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:255: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:256: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:256: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:256: note: Possible overload variants:
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:256: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:259: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/test_frame.py:259: error: No overload variant of "drop" of "DataFrame" matches argument types "List[int]", "bool"  [call-overload]
+ tests/test_frame.py:259: note: Possible overload variants:
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:259: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]
+ tests/test_frame.py:261: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_frame.py:261: error: No overload variant of "drop" of "DataFrame" matches argument type "List[str]"  [call-overload]
+ tests/test_frame.py:261: note: Possible overload variants:
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[True], errors: Literal['ignore', 'raise'] = ...) -> None
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: Literal[False] = ..., errors: Literal['ignore', 'raise'] = ...) -> DataFrame
+ tests/test_frame.py:261: note:     def drop(self, labels: Union[Hashable, Index] = ..., *, axis: Union[str, int] = ..., index: Union[Hashable, Index] = ..., columns: Union[Hashable, Index] = ..., level: Hashable = ..., inplace: bool = ..., errors: Literal['ignore', 'raise'] = ...) -> Optional[DataFrame]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/data.py:89: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/dependencies/data.py:89: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/dependencies/data.py:95: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/dependencies/data.py:95: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:228: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:228: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:310: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:310: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:927: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:927: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:931: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:931: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:935: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:935: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1346: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1346: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1688: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1688: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:1785: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:1785: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2050: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2050: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2054: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2054: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2123: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2123: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2174: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2270: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2270: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2403: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2403: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2407: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2407: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2411: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2411: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2421: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2421: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2436: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2436: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2451: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2451: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2471: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2471: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2599: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2599: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2654: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2654: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2669: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2669: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2775: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2775: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2790: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2790: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2831: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2831: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2835: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2835: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2839: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2839: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2921: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2921: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2936: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2936: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2957: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2957: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:2997: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:2997: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3012: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3012: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3146: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3146: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3163: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3163: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3178: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3178: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3222: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3237: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3288: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3288: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3303: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3303: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3354: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3354: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3371: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3371: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3420: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3420: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:3424: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:3424: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4069: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4069: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4086: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4086: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4116: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4116: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4157: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4157: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4218: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4218: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4277: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4277: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4299: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4299: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4495: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4495: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4548: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4548: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4618: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4618: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4670: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4670: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4729: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4729: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4761: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4761: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4781: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4781: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/abc.py:4813: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/abc.py:4813: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:115: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:115: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:119: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:119: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:124: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:124: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:153: error: Returning Any from function declared to return Self?  [no-any-return]
- tanjun/hooks.py:160: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:160: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:165: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:165: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:187: error: Returning Any from function declared to return Self?  [no-any-return]
- tanjun/hooks.py:194: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:194: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:199: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:199: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:218: error: Returning Any from function declared to return Self?  [no-any-return]
- tanjun/hooks.py:225: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:225: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:230: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:230: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:249: error: Returning Any from function declared to return Self?  [no-any-return]
- tanjun/hooks.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:256: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:261: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/hooks.py:261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/hooks.py:280: error: Returning Any from function declared to return Self?  [no-any-return]
- tanjun/dependencies/locales.py:114: error: Only concrete class can be given where "Type[AbstractLocaliser]" is expected  [type-abstract]
- tanjun/dependencies/locales.py:143: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/dependencies/locales.py:143: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/context/base.py:119: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/context/base.py:119: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/context/base.py:130: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/context/base.py:130: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ tanjun/components.py:109: error: Argument 1 has incompatible type "object"; expected "_CommandT"  [arg-type]
+ tanjun/components.py:111: error: Argument 1 to "collect_wrapped" has incompatible type "object"; expected "ExecutableCommand[Any]"  [arg-type]
- tanjun/components.py:323: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:323: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:340: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:340: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:344: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:344: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:352: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:352: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:422: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:422: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:448: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:448: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:468: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:468: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:489: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:489: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:494: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:494: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- tanjun/components.py:510: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
- tanjun/components.py:510: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- 

... (truncated 2520 lines) ...

github-actions[bot] avatar Oct 23 '22 17:10 github-actions[bot]