Set disallow_untyped_defs and disallow_untyped_calls to true, fix errors.
Most changes were straightforward. The 2 biggest changes are:
datastructures.py - much finagling to get mypy to accept an overloaded __getitem__
The files containing Account and LocalAccount had circular imports once typing was added. Fixed by adding the AccountLocalActions ABC for LocalAccount to import from. It's not a great name, but the best I could come up with today.
Todo:
[x] Clean up commit history
[x] Add or update documentation related to these changes
What was wrong?
Tighten up typing!
How was it fixed?
Set
disallow_untyped_defs
anddisallow_untyped_calls
to true, fix errors.Most changes were straightforward. The 2 biggest changes are:
datastructures.py
- much finagling to getmypy
to accept an overloaded__getitem__
Account
andLocalAccount
had circular imports once typing was added. Fixed by adding theAccountLocalActions
ABC forLocalAccount
to import from. It's not a great name, but the best I could come up with today.Todo:
Cute Animal Picture