1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

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.
This commit is contained in:
Rémi Verschelde
2022-02-10 12:00:11 +01:00
parent f21a62b620
commit 1bdb82c64e
28 changed files with 65 additions and 60 deletions

View File

@@ -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")