Coding 2022-12-26

Tags:
By Max Woerner Chase

I had a good day today, and got some work done on MOTR, but right now, it feels like Mypy got me a reasonable distance and fixed some bugs, and then it, like, betrayed me.

I was working on replacing isinstance checks inside one module, where part of the implementation was stubbed out because nothing needed that part yet. I was having some persistent troubles writing a function to deal with the stubbed-out code, until I worked out that I was getting type errors when I implemented the stubs, because the type signatures on the stub were wrong, and the stub was papering over that.

Once I'd addressed that, I would have liked Mypy to accept all of the code, but it's rejecting something about the remaining code, and I'm unclear about how to fix it.

I'm going to keep on trying to make sense of the errors I'm getting, and also I'm going to look into whether it's possible to regain some conciseness, after my attempt to remove some nested conditionals resulted in a lot of method signatures.

For now, I should wrap things up, and I might pick at these errors a bit more, even if I probably shouldn't at the moment.

Good night.