summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2023-05-14 12:48:27 -0400
committerGitHub <noreply@github.com>2023-05-14 18:48:27 +0200
commitb186f683da0896d2fbed0f2aae3497b29ca93266 (patch)
tree5ff79d117656067a58a5ec1d0b2c82f502b47790 /astroid
parent5fa9089f1af6da65640e5ff81ae79207d039b4bd (diff)
downloadastroid-git-b186f683da0896d2fbed0f2aae3497b29ca93266.tar.gz
Handle ``objects.Super`` in `helpers.object_type()` (#2177)
Diffstat (limited to 'astroid')
-rw-r--r--astroid/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/helpers.py b/astroid/helpers.py
index 3c5d8e5f..40bbf7e0 100644
--- a/astroid/helpers.py
+++ b/astroid/helpers.py
@@ -8,7 +8,7 @@ from __future__ import annotations
from collections.abc import Generator
-from astroid import bases, manager, nodes, raw_building, util
+from astroid import bases, manager, nodes, objects, raw_building, util
from astroid.context import CallContext, InferenceContext
from astroid.exceptions import (
AstroidTypeError,
@@ -69,7 +69,7 @@ def _object_type(
raise InferenceError
elif isinstance(inferred, util.UninferableBase):
yield inferred
- elif isinstance(inferred, (bases.Proxy, nodes.Slice)):
+ elif isinstance(inferred, (bases.Proxy, nodes.Slice, objects.Super)):
yield inferred._proxied
else: # pragma: no cover
raise AssertionError(f"We don't handle {type(inferred)} currently")