Truncate long type names in autodoc
When it autodoc
lists a type in the documentation it generates, for example, Bases
which class inherits, or enter hints for function parameters, it adds a type module. For example, the function getting the Tensorflow optimizer would be specified as
f(opt: tensorflow.python.training.optimizer.Optimizer = <tensorflow.python.training.adam.AdamOptimizer object>)
It's really hard to read and redundant. Is there a way to suppress adding the module name? Or another way to control how this type is specified?
Edit: This answer helps fix this feature in one go. Is there a way to fix this for all functions?
+3
Roy fox
source
to share
No one has answered this question yet
See similar questions:
8
or similar:
1623
1531
1293
1093
1092
1028
994
932
0
0