mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
removed unnecessary 'or {}'
This commit is contained in:
@@ -813,7 +813,7 @@ class GoogleDocstring:
|
||||
if self._what in ("module", "class", "exception") and self._obj:
|
||||
# cache the class annotations
|
||||
if not hasattr(self, "_annotations"):
|
||||
localns = getattr(self._config, "autodoc_type_aliases", {}) or {}
|
||||
localns = getattr(self._config, "autodoc_type_aliases", {})
|
||||
localns.update(getattr(
|
||||
self._config, "napoleon_type_aliases", {}
|
||||
) or {})
|
||||
|
||||
Reference in New Issue
Block a user