Skip to content
Snippets Groups Projects
Verified Commit 510ba166 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Manual: do not add parentheses to synopsis of functions without arguments

Closes: #1707
(cherry picked from commit 85c637d3)
parent c87c82c5
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright © 2018-2019 Dynare Team # Copyright © 2018-2024 Dynare Team
# #
# This file is part of Dynare. # This file is part of Dynare.
# #
...@@ -80,9 +80,7 @@ class DynObject(ObjectDescription): ...@@ -80,9 +80,7 @@ class DynObject(ObjectDescription):
signode += addnodes.desc_name(name, name) signode += addnodes.desc_name(name, name)
if self.has_arguments: if self.has_arguments:
if not arglist: if arglist:
signode += addnodes.desc_parameterlist()
else:
signode += addnodes.desc_addname(arglist,arglist) signode += addnodes.desc_addname(arglist,arglist)
return fullname, prefix return fullname, prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment