mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9755 from lamby/996948-sphinx-please-make-the-output-of-instance-aliases-reproducible
Make util.typing.restify sanitise unreproducible output
This commit is contained in:
commit
36eb4b7d52
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user