mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-20 17:24:34 -04:00
Enable addtional flake8-bugbear linting checks. (#9659)
This commit is contained in:
parent
c73cc2c2ad
commit
4c3827f2c1
8 changed files with 9 additions and 8 deletions
|
@ -116,7 +116,7 @@ def register_cache(
|
|||
"""
|
||||
if resizable:
|
||||
if not resize_callback:
|
||||
resize_callback = getattr(cache, "set_cache_factor")
|
||||
resize_callback = cache.set_cache_factor # type: ignore
|
||||
add_resizable_cache(cache_name, resize_callback)
|
||||
|
||||
metric = CacheMetric(cache, cache_type, cache_name, collect_callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue