mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Uglify the code to make flake8 happier
This commit is contained in:
parent
a3b80bc87a
commit
2fd78648e6
@ -43,9 +43,9 @@ if PY3:
|
||||
# On 3.5+, signature(int) or similar raises ValueError. On 3.4, it
|
||||
# succeeds with a bogus signature. We want a TypeError uniformly, to
|
||||
# match historical behavior.
|
||||
if (isinstance(func, type)
|
||||
and is_builtin_class_method(func, "__new__")
|
||||
and is_builtin_class_method(func, "__init__")):
|
||||
if (isinstance(func, type) and
|
||||
is_builtin_class_method(func, "__new__") and
|
||||
is_builtin_class_method(func, "__init__")):
|
||||
raise TypeError(
|
||||
"can't compute signature for built-in type {}".format(func))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user