We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__eq__
1 parent b7facac commit 8325ca7Copy full SHA for 8325ca7
tools/tensorflow_docs/api_generator/doc_generator_visitor.py
@@ -45,7 +45,7 @@ def maybe_singleton(py_object: Any) -> bool:
45
is_immutable_type = isinstance(py_object, immutable_types)
46
47
# Check if the object is the empty tuple.
48
- return is_immutable_type or py_object == ()
+ return is_immutable_type or (isinstance(py_object, tuple) and py_object == ()) # pylint: disable=g-explicit-bool-comparison
49
50
51
class ApiTreeNode(object):
0 commit comments