Closed jakkdl closed 4 months ago
whoa, slow tests found a crash!
Somehow the value
attribute of a cst.Attribute
is neither cst.Attribute
nor cst.Name
. The docs do say that it can be any BaseExpression
, but I'm failing to make sense of that. Time to dig into the mccabe==0.7.0 source code.
EDIT: ah, self.nodes[n1].append(n2)
and your changes look good too, thanks!
Fixes #207, originally requested by @alicederyn in https://github.com/Zac-HD/flake8-async-archive/issues/5
The doc and error message can probably be improved.
I went for quite comprehensive checks for possible ways of not using the value. I don't think ~anybody that installs this plugin would hit any of them, but if/when this gets packaged into ruff I could imagine one of the weirder corner cases getting hit.