Closed hugosenari closed 3 years ago
Nice catch! Do you have a the code that produced the error in the first place? I'd like to add a regression test to tests/test_mypy_plugin.yaml
. If you don't want to touch that file, maybe you can add a snippet in #62, I'll do it myself
I realised the error only occurs when using mypy 0.800. I suppose they changed the plugin api without bumping a major version, which is unfortunate.
I bumped the mypy version, in order that we simply test against the newest version. That required fixing one other test, and some type errors introduced by bumping the mypy version.
if they use semantic versioning, 0.xx
is unstable.
Means it may happen until '1.x'
What are versioning/stability strategy of mypy?
I think you are right that they use semantic versioning, I suppose it is expected. The trouble is that MyPy is a somewhat special "dependency" as its not installed with pfun, its something users will install themselves if they need it. This means that unlike a regular dependency, we don't really control which version of MyPy will be used. It might make sense to write somewhere in the documentation what version(s) of MyPy we test against.
What it solves:
fix #62:
How it was solved: creatings a new list from
.args