Update sphinx/domains/cpp.py

Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
This commit is contained in:
Jeremy Maitin-Shepard 2022-03-11 05:02:28 -08:00 committed by GitHub
parent 6073b32093
commit 0cb021b65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: