mypy: Finalize migration of cache.py to python3 function annotation.

- Use forward declarations of some types from models.py to avoid cycles.
- Remove cache.py from linter rule exclude list to ensure it stays that way.
This commit is contained in:
neiljp (Neil Pilgrim)
2018-03-16 16:51:05 +00:00
committed by Tim Abbott
parent 005cb6bd03
commit 966ca7015f
2 changed files with 8 additions and 17 deletions

View File

@@ -477,7 +477,6 @@ def build_custom_checkers(by_lang):
# Zerver files that we should just clean.
'zerver/tests',
'zerver/lib/api_test_helpers.py',
'zerver/lib/cache.py',
'zerver/lib/request.py',
'zerver/views/streams.py',
# thumbor is (currently) python2 only