summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>2022-03-11 05:02:28 -0800
committerGitHub <noreply@github.com>2022-03-11 05:02:28 -0800
commit0cb021b65c2ec9ef4d7979aabe90ae77d634538c (patch)
treee0331440966bce12e0b5f3efa8b801a63a89deb6 /sphinx/domains/cpp.py
parent6073b320938f856f55974ca3658c9323ec593d3b (diff)
downloadsphinx-git-0cb021b65c2ec9ef4d7979aabe90ae77d634538c.tar.gz
Update sphinx/domains/cpp.py
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index a2fd39fef..7a0c5b64d 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -3373,7 +3373,7 @@ class ASTUnion(ASTBase):
def __init__(self, name: ASTNestedName,
attrs: List[ASTAttribute]) -> None:
self.name = name
- self.attrs = attrs or []
+ self.attrs = attrs
def get_id(self, version: int, objectType: str, symbol: "Symbol") -> str:
if version == 1: