n`3 V d Z ddlZddlZddlmZ defdZdefdZdefdZdefdZ dS ) a Contains logic for retrieving special methods.
This implementation does not rely on the dot attribute access
logic, found in ``.getattr()``. The difference between these two
is that the dunder methods are looked with the type slots
(you can find more about these here
http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/)
As such, the lookup for the special methods is actually simpler than
the dot attribute access.
N)AttributeInferenceErrorreturnc & | j g }t j fd| d D }t
t j || }|st | |S )Nc 3 N K | ]}|j g V d S )N)localsget).0ancestornames s/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/interpreter/dunder_lookup.py