mirror of https://gitlab.com/tildes/tildes.git
Browse Source
mypy 0.720 includes a new semantic analyzer that it uses by default. It mostly still works fine with Tildes's code, except that it doesn't understand that @hybrid_property is very similar to @property, and it also fixes a bug I was taking advantage of before to get mypy to not complain about a @property that returns a different type than you set it to. This uses the TYPE_CHECKING constant (which is only ever true when mypy is currently analyzing the code) to effectively replace @hybrid_property with @property so that mypy understands it.merge-requests/74/head
Deimos
5 years ago
4 changed files with 16 additions and 9 deletions
Loading…
Reference in new issue