Expermimental mypy plugin
I was playing around a bit with a mypy plugin and this was the best I could come up with. Unfortunately the mypy docu about the plugins is not very detailed...
This plugin makes mypy recognize the user defined accessors.
There is a quite severe bug in there (due to my lack of understanding of mypy internals probably) which makes it work only on the first run but when you change a line in your code and run mypy again it will crash... (you can delete the cache to make it work one more time again :)
Any chance that a mypy expert can figure this out? haha
(FYI I had been the mypy person here — for my sins — but I think this is beyond my understanding — so putting an issue into mypy might be the best path forward on the cache issue...)
(FYI I had been the mypy person here — for my sins — but I think this is beyond my understanding — so putting an issue into mypy might be the best path forward on the cache issue...)
Didn't want to steal your job, haha.
Yes, I think a mypy issue might be the best way forward. I still have to construct a minimal example for this issue though ...