removed unnecessary 'or {}'

This commit is contained in:
Quentin Soubeyran
2020-11-25 19:17:18 +01:00
parent 97205daea4
commit 803aca3265

View File

@@ -813,7 +813,7 @@ class GoogleDocstring:
if self._what in ("module", "class", "exception") and self._obj: if self._what in ("module", "class", "exception") and self._obj:
# cache the class annotations # cache the class annotations
if not hasattr(self, "_annotations"): if not hasattr(self, "_annotations"):
localns = getattr(self._config, "autodoc_type_aliases", {}) or {} localns = getattr(self._config, "autodoc_type_aliases", {})
localns.update(getattr( localns.update(getattr(
self._config, "napoleon_type_aliases", {} self._config, "napoleon_type_aliases", {}
) or {}) ) or {})