Skip to content

Commit 36eb4b7

Browse files
authored
Merge pull request sphinx-doc#9755 from lamby/996948-sphinx-please-make-the-output-of-instance-aliases-reproducible
Make util.typing.restify sanitise unreproducible output
2 parents 080bb71 + ef7dfcd commit 36eb4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/util/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def restify(cls: Optional[Type]) -> str:
144144
else:
145145
return _restify_py36(cls)
146146
except (AttributeError, TypeError):
147-
return repr(cls)
147+
return inspect.object_description(cls)
148148

149149

150150
def _restify_py37(cls: Optional[Type]) -> str:

0 commit comments

Comments
 (0)