I want to use Mypy to warn me when I accidentally change a variable to a different data type.
But it seems Mypy ignores anything that happens in the __init__ of my test class.
It also ignores a change of an object's attributes to different data types.
Minimal reproducer:
class Foo:
blah: int
def __init__(self):
self.blah = 'asdf'
Mypy reports no issues for this code.
Am I missing something?