You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lens mypy plugin hook currently doesn't work with generic types, eg in:
fromtypingimportList
[0] |lens(List)[0] <<1# error: Unsupported operand types for << ("Lens[List[_T], _T]" and "int")
One possible solution approach might be to add the type variable definitions and types of the generic type to the signature of __call__, __ror__, and __lshift__ of the Lens instance.
The text was updated successfully, but these errors were encountered:
The
lens
mypy plugin hook currently doesn't work with generic types, eg in:One possible solution approach might be to add the type variable definitions and types of the generic type to the signature of
__call__
,__ror__
, and__lshift__
of theLens
instance.The text was updated successfully, but these errors were encountered: