PyDoc: correct use of back ticks for literal text

This commit is contained in:
Campbell Barton
2025-08-22 15:10:29 +10:00
parent 78c9d16919
commit e964f078b5
23 changed files with 100 additions and 95 deletions

View File

@@ -549,8 +549,9 @@ PyDoc_STRVAR(
" :arg slot: The framebuffer slot to read data from.\n"
" :type slot: int\n"
" :arg format: The format that describes the content of a single channel.\n"
" Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`.\n"
" `UINT_24_8` is deprecated, use `FLOAT` instead.\n"
" Possible values are ``FLOAT``, ``INT``, ``UINT``, ``UBYTE``, ``UINT_24_8`` & "
"``10_11_11_REV``.\n"
" ``UINT_24_8`` is deprecated, use ``FLOAT`` instead.\n"
" :type format: str\n"
" :arg data: Optional Buffer object to fill with the pixels values.\n"
" :type data: :class:`gpu.types.Buffer`\n"
@@ -810,10 +811,10 @@ PyDoc_STRVAR(
"texture is attached to the frame-buffer.\n"
" For cube map textures, layer is translated into a cube map face.\n"
"\n"
" :arg depth_slot: GPUTexture to attach or a `dict` containing keywords: "
" :arg depth_slot: GPUTexture to attach or a ``dict`` containing keywords: "
"'texture', 'layer' and 'mip'.\n"
" :type depth_slot: :class:`gpu.types.GPUTexture` | dict[] | None\n"
" :arg color_slots: Tuple where each item can be a GPUTexture or a `dict` "
" :arg color_slots: Tuple where each item can be a GPUTexture or a ``dict`` "
"containing keywords: 'texture', 'layer' and 'mip'.\n"
" :type color_slots: :class:`gpu.types.GPUTexture` | "
"dict[str, int | :class:`gpu.types.GPUTexture`] | "