### Describe the bug The `NonLocalVariableRead` caused by accessing the instance variable `self._dict` in the following function was not detected. ```py # matplotlib.spines.__getattr__.551.4 def __getattr__(self, name): try: return self._dict[name] # Impure NonLocalVariableRead except KeyError: raise AttributeError(f"'Spines' object does not contain a '{name}' spine") ``` ### To Reproduce 1. Run purity analysis on the matplotlib library 2. Check the result file for the function: matplotlib.spines.__getattr__.551.4 ### Expected behavior This should be detected even though it is access of the dictionary. ### Screenshots (optional) _No response_ ### Additional Context (optional) _No response_
Describe the bug
The
NonLocalVariableReadcaused by accessing the instance variableself._dictin the following function was not detected.To Reproduce
Expected behavior
This should be detected even though it is access of the dictionary.
Screenshots (optional)
No response
Additional Context (optional)
No response