You've already forked godot
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user