zulip/zerver
Anders Kaseorg 1b96af2987 cache: Fix type: ignore issues.
This was hiding an actual type error in test_cache: a mismatch between
the object ID type, which is str, and the default id_fetcher, which
returns int.

Mypy’s insufficient support for default generic arguments basically
means we can’t use them without a lot of overloading, and there are
not enough callers here to justify that.

https://github.com/python/mypy/issues/3737

We avoid this being super messy where the code calls this by adding
some less generic wrappers for generic_bulk_cached_fetch.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-01 10:51:15 -07:00
..
data_import mypy: Type simple generators as Iterator, not Iterable. 2020-06-23 11:29:54 -07:00
lib cache: Fix type: ignore issues. 2020-07-01 10:51:15 -07:00
management tornado: Split address from port more carefully. 2020-06-29 22:19:47 -07:00
migrations models: Add missing migrations from invite_as change. 2020-06-24 11:39:01 -07:00
openapi decorator: Strengthen types of signature-preserving decorators. 2020-06-30 18:58:23 -07:00
templatetags refactor: Rename zerver.lib.bugdown to zerver.lib.markdown . 2020-06-26 17:08:37 -07:00
tests cache: Fix type: ignore issues. 2020-07-01 10:51:15 -07:00
tornado tornado: Split address from port more carefully. 2020-06-29 22:19:47 -07:00
views decorator: Replace type: ignore with cast, avoid Any. 2020-06-30 18:58:23 -07:00
webhooks tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
worker i18n: Mark notification bot message in queue_processors for translation. 2020-06-26 14:57:18 -07:00
__init__.py
apps.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
context_processors.py auth: Make apple log in and sign up buttons consistent with others. 2020-06-18 13:06:10 -07:00
decorator.py decorator: Replace type: ignore with cast, avoid Any. 2020-06-30 18:58:23 -07:00
filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
forms.py emails: Add a custom header specifying the organization when possible. 2020-06-28 13:33:02 -07:00
logging_handlers.py logging_handlers: Fix type: ignore issues. 2020-06-30 18:58:23 -07:00
middleware.py refactor: Rename bugdown words to markdown in stats related functions. 2020-06-26 17:20:40 -07:00
models.py cache: Fix type: ignore issues. 2020-07-01 10:51:15 -07:00
signals.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00