Generic type variables broken i latest release #636
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
The latest release of Pylance broke the typing in https://github.com/dbrattli/Expression/blob/master/oryx/handler.py . It looks like Pylance (or Python or me) cannot handle generic type aliases properly:
E.g:
E.g code like this now failes to type check using the
HttpHandler
type alias:Environment data
Expected behaviour
Generic type aliases should work.
Actual behaviour
However, substituting the type alias
HttpHandler[TNext, TResult, TError, TSource]
with:... fixes the problem. Why does not the type alias
HttpHandler
work with Pylance? It used to type check with Pylance, but after upgrading it suddenly stopped working.Logs
The text was updated successfully, but these errors were encountered: