From eb711d20a4ed5f9e8ff8e7ad797d27adc43d8ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sun, 5 Feb 2023 21:44:14 +0100 Subject: Create ``UninferableBase`` --- doc/inference.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/inference.rst b/doc/inference.rst index 8d2c7e43..d66ea5ea 100644 --- a/doc/inference.rst +++ b/doc/inference.rst @@ -22,10 +22,10 @@ In both cases the :meth:`infer` must return a *generator* which iterates through the various *values* the node could take. In some case the value yielded will not be a node found in the AST of the node -but an instance of a special inference class such as :class:`Uninferable`, +but an instance of a special inference class such as :obj:`Uninferable`, or :class:`Instance`. -Namely, the special singleton :obj:`Uninferable()` is yielded when the inference reaches +Namely, the special singleton :obj:`Uninferable` is yielded when the inference reaches a point where it can't follow the code and is so unable to guess a value; and instances of the :class:`Instance` class are yielded when the current node is inferred to be an instance of some known class. -- cgit v1.2.1