1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +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.

(cherry picked from commit 1bdb82c64e)
This commit is contained in:
Rémi Verschelde
2022-02-10 12:00:11 +01:00
parent 1865f06bef
commit 7a16bb2ee4
41 changed files with 70 additions and 65 deletions

View File

@@ -471,19 +471,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")