Hello,

I was wondering if it is expected that the *autodoc_type_aliases* does not 
systematically generate links to the alias?

Taking this page for example: 
https://colour.readthedocs.io/en/develop/generated/colour.RGB_to_YCbCr.html#colour.RGB_to_YCbCr

colour.RGB_to_YCbCr(*RGB: ArrayLike*, *K: numpy.ndarray 
<https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray>
 = WEIGHTS_YCBCR['ITU-R BT.709']*
, *in_bits: Integer =10*, *in_legal: Boolean = False*, 
*in_int: Boolean = False*, *out_bits: Integer = 8*, 
*out_legal: Boolean = True*, *out_int:Boolean = False*, ***kwargs: Any 
<https://docs.python.org/3.8/library/typing.html#typing.Any>*)→ 
numpy.ndarray 
<https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray>

I would like *ArrayLike *to link to the page where it is defined and 
imported from, 
i.e. 
https://colour.readthedocs.io/en/develop/generated/colour.hints.ArrayLike.html#colour.hints.ArrayLike.
 
Using *colour.hints.ArrayLike* does not work either.

If I don't define *ArrayLike* in *autodoc_type_aliases,* then it get 
"inelegantly" expanded as expected.

Cheers,

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/d44132a9-5711-475f-9ade-2a0e05ffd285n%40googlegroups.com.

Reply via email to