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
ran into a peculiar bug where the CSTTypedTransformerFunctions types seem to not work with mypy. leave_{Node} calls fail mypy type check with Signature of "leave_{Node}" is incompatible with supertype "CSTTypedTransformerFunctions".
the type definition that mypy says is incompatible doesnt look incompatible to me, though:
i'm not sure yet if this is an issue with mypy or libcst, but wanted to share here for replication. (mypy's error messages aren't super descriptive so am still trying to figure out where mypy is getting the incompatible defintion from.)
context
ran into a peculiar bug where the
CSTTypedTransformerFunctions
types seem to not work withmypy
.leave_{Node}
calls fail mypy type check withSignature of "leave_{Node}" is incompatible with supertype "CSTTypedTransformerFunctions"
.the type definition that mypy says is incompatible doesnt look incompatible to me, though:
LibCST/libcst/_typed_visitor.py
Lines 5785 to 5787 in c9b10fe
i'm not sure yet if this is an issue with mypy or libcst, but wanted to share here for replication. (mypy's error messages aren't super descriptive so am still trying to figure out where mypy is getting the incompatible defintion from.)
replicate (using: python 3.7.5)
./requirements.txt
./transformer.py
mypy errors
The text was updated successfully, but these errors were encountered: