gautierronan · GitHub

Hi, as of version 1.12.0, it seems that our function signatures that include strings are not properly rendered anymore.

For instance, instead of:

wigner(
    state: ArrayLike,
    *,
    ax: Axes | None = None,
    xmax: float = 5.0,
    ymax: float | None = None,
    vmax: float = 2 / jnp.pi,
    npixels: int = 101,
    cmap: str = "dq",                # bug here
    interpolation: str = "bilinear", # and here
    colorbar: bool = True,
    cross: bool = False,
    clear: bool = False
)

we have:

wigner(state: ArrayLike, *, ax: Axes | None = None, xmax: float = 5.0, ymax: float | None = None, vmax: float = 2 / jnp.pi, npixels: int = 101, cmap: str = 'dq', interpolation: str = 'bilinear', colorbar: bool = True, cross: bool = False, clear: bool = False)

(see the example live on our library documentation, here)

It seems that this bug is somehow related to the use of single quotation marks instead of doubles? I'm not sure whether this is a bug arising from our side, of from the side of mkdocstrings-python. Thanks!

Read the original on github.com ↗