mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
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>
28 KiB
28 KiB