From 59896449f721e03334abdba4b816319ce57a02fe Mon Sep 17 00:00:00 2001 From: Ioannis Filippidis Date: Sun, 13 Feb 2022 04:30:36 +0100 Subject: [PATCH] DOC: format inline code in Markdown, within docstring and rephrase. --- dd/cudd.pyx | 3 ++- dd/dddmp.py | 7 ++++--- dd/mdd.py | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dd/cudd.pyx b/dd/cudd.pyx index f610f86f..6ac21d75 100644 --- a/dd/cudd.pyx +++ b/dd/cudd.pyx @@ -2162,7 +2162,8 @@ cpdef count_nodes(functions): Sharing is taken into account. @type functions: `list` of `Function` - @rtype: int + @rtype: + `int` """ cdef DdNode **x cdef Function f diff --git a/dd/dddmp.py b/dd/dddmp.py index de259d65..e0e7f1cf 100644 --- a/dd/dddmp.py +++ b/dd/dddmp.py @@ -108,10 +108,11 @@ def t_error(self, t): def build(self, debug=False, debuglog=None, **kwargs): """Create a lexer. - @param kwargs: Same arguments as C{{ply.lex.lex}}: + @param kwargs: + Same arguments as `ply.lex.lex`: - - except for C{{module}} (fixed to C{{self}}) - - C{{debuglog}} defaults to the logger C{{"{logger}"}}. + - except for `module` (fixed to `self`) + - `debuglog` defaults to `logger`. """ if debug and debuglog is None: debuglog = logging.getLogger(LEX_LOG) diff --git a/dd/mdd.py b/dd/mdd.py index fe4d9f4b..78b33a06 100644 --- a/dd/mdd.py +++ b/dd/mdd.py @@ -170,7 +170,8 @@ def find_or_add(self, i, *nodes): """Return node at level `i` with successors in `nodes`. @param i: level in `range(len(vars))` - @type i: int + @type i: + `int` """ if not (0 <= i < len(self.vars)): raise ValueError(i)