Cleanup: consistent use of back-ticks in code-comments

This commit is contained in:
Campbell Barton
2025-07-23 20:54:26 +10:00
parent 81535a470c
commit 5e3db5fbb0
31 changed files with 80 additions and 71 deletions

View File

@@ -417,7 +417,7 @@ static PyObject *pygpu_batch_draw_instanced(BPyGPUBatch *self, PyObject *args, P
"O!" /* `program` */
"|$" /* Optional keyword only arguments. */
"i" /* `instance_start` */
"i" /* `instance_count' */
"i" /* `instance_count` */
":GPUBatch.draw_instanced",
_keywords,
nullptr,
@@ -461,8 +461,8 @@ static PyObject *pygpu_batch_draw_range(BPyGPUBatch *self, PyObject *args, PyObj
PY_ARG_PARSER_HEAD_COMPAT()
"O!" /* `program` */
"|$" /* Optional keyword only arguments. */
"i" /* `elem_start' */
"i" /* `elem_count' */
"i" /* `elem_start` */
"i" /* `elem_count` */
":GPUBatch.draw_range",
_keywords,
nullptr,

View File

@@ -798,8 +798,8 @@ static PyMethodDef pygpu_framebuffer__tp_methods[] = {
# endif
#endif
/* Ideally type aliases would de-duplicate: `blender::gpu::Texture | dict[str, int |
* blender::gpu::Texture]` in this doc-string. */
/* Ideally type aliases would de-duplicate:
* `blender::gpu::Texture | dict[str, int | blender::gpu::Texture]` in this doc-string. */
PyDoc_STRVAR(
/* Wrap. */
pygpu_framebuffer__tp_doc,

View File

@@ -2273,7 +2273,7 @@ static StructRNA *bpy_prop_deferred_data_or_srna(PyObject *self,
self = PyTuple_GET_ITEM(args, 0);
args = PyTuple_New(0);
/* This will be #BPy_BoolProperty` or one of the functions that define a type. */
/* This will be #BPy_BoolProperty or one of the functions that define a type. */
PyCFunctionWithKeywords method_fn = (PyCFunctionWithKeywords)(void *)method_def->ml_meth;
*r_deferred_result = method_fn(self, args, kw);
Py_DECREF(args);

View File

@@ -83,7 +83,7 @@ static int parse_syntax_error(PyObject *err,
*message = nullptr;
*filename = nullptr;
/* new style errors. `err' is an instance */
/* New style errors. `err` is an instance. */
*message = _PyObject_GetAttrId(err, &PyId_msg);
if (!*message) {
goto finally;