diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-02-10 12:00:11 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-02-10 12:30:19 +0100 |
commit | 1bdb82c64e65f23381183051ef1fc9856a7830f8 (patch) | |
tree | 82f8a101fb4461d29bc9dd1e2bc147bb99c706f6 /doc/tools | |
parent | f21a62b62027a88ea90de539a48df8e280a820e8 (diff) |
Fix typos with codespell
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
Diffstat (limited to 'doc/tools')
-rwxr-xr-x | doc/tools/make_rst.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 68f3b66f43..365beb434b 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -536,19 +536,19 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S # Inheritance tree # Ascendants if class_def.inherits: - inh = class_def.inherits.strip() + inherits = class_def.inherits.strip() f.write("**" + translate("Inherits:") + "** ") first = True - while inh in state.classes: + while inherits in state.classes: if not first: f.write(" **<** ") else: first = False - f.write(make_type(inh, state)) - inode = state.classes[inh].inherits + f.write(make_type(inherits, state)) + inode = state.classes[inherits].inherits if inode: - inh = inode.strip() + inherits = inode.strip() else: break f.write("\n\n") |