Cleanup: Grammar: Fix uses of "for e.g."
e.g. stands for "exempli gratia" in Latin which means "for example". The best way to make sure it makes sense when writing is to just expand it to "for example". In these cases where the text was "for e.g.", that leaves us with "for for example" which makes no sense. This commit fixes all 110 cases, mostly just just replacing the words with "for example", but also restructuring the text a bit more in a few cases, mostly by moving "e.g." to the beginning of a list in parentheses. Pull Request: https://projects.blender.org/blender/blender/pulls/139596
This commit is contained in:
@@ -784,11 +784,11 @@ def pyfunc2sphinx(ident, fw, module_name, type_name, identifier, py_func, is_cla
|
||||
"""
|
||||
|
||||
if type(py_func) == MethodType:
|
||||
# Including methods means every operators "poll" function for e.g.
|
||||
# Including methods means every operators "poll" function example
|
||||
# would be listed in documentation which isn't useful.
|
||||
#
|
||||
# However excluding all of them is also incorrect as it means class methods defined
|
||||
# in `bpy_types.py` for e.g. are excluded, making some utility functions entirely hidden.
|
||||
# However, excluding all of them is also incorrect as it means class methods defined
|
||||
# in `bpy_types.py` for example are excluded, making some utility functions entirely hidden.
|
||||
if (bl_rna := getattr(py_func.__self__, "bl_rna", None)) is not None:
|
||||
if bl_rna.functions.get(identifier) is not None:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user