Skip to content

Commit

Permalink
Merge pull request #9755 from lamby/996948-sphinx-please-make-the-out…
Browse files Browse the repository at this point in the history
…put-of-instance-aliases-reproducible

Make util.typing.restify sanitise unreproducible output
  • Loading branch information
tk0miya committed Oct 22, 2021
2 parents 080bb71 + ef7dfcd commit 36eb4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/util/typing.py
Expand Up @@ -144,7 +144,7 @@ def restify(cls: Optional[Type]) -> str:
else:
return _restify_py36(cls)
except (AttributeError, TypeError):
return repr(cls)
return inspect.object_description(cls)


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

0 comments on commit 36eb4b7

Please sign in to comment.