Code styling tweaks to core helpers (#85441)

This commit is contained in:
Franck Nijhof 2023-01-09 00:44:09 +01:00 committed by GitHub
parent cf5fca0464
commit 06a35fb7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 192 additions and 100 deletions

View file

@ -257,7 +257,9 @@ class _TranslationCache:
_merge_resources if category == "state" else _build_resources
)
new_resources: Mapping[str, dict[str, Any] | str]
new_resources = resource_func(translation_strings, components, category) # type: ignore[assignment]
new_resources = resource_func( # type: ignore[assignment]
translation_strings, components, category
)
for component, resource in new_resources.items():
category_cache: dict[str, Any] = cached.setdefault(