Steps to reproduce:
- Check out this repo
- Install the packages from
requirements.txt
- Run
mypy repro.py from the repo root.
Expected output:
repro.py:4: error: Revealed type is 'Any'
repro.py:6: error: Revealed type is 'builtins.None'
Actual output:
repro.py:4: error: Revealed type is 'Any'
The issue goes away if you disable strict Optional checking.
This is preventing a significant amount of our codebase from being checked right now, so I would appreciate any suggestions for a workaround!