From 803aca3265a731150b5bf7357dcd6e291e39e3b0 Mon Sep 17 00:00:00 2001 From: Quentin Soubeyran <45202794+QuentinSoubeyran@users.noreply.github.com> Date: Wed, 25 Nov 2020 19:17:18 +0100 Subject: [PATCH] removed unnecessary 'or {}' --- sphinx/ext/napoleon/docstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py index 71bdc2597..76db00d98 100644 --- a/sphinx/ext/napoleon/docstring.py +++ b/sphinx/ext/napoleon/docstring.py @@ -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 {})