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:
Takeshi KOMIYA 2021-10-23 02:17:34 +09:00 committed by GitHub
commit 36eb4b7d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: