Closed llllvvuu closed 10 months ago
fixes #378 and #375 which are caused by https://github.com/Instagram/LibCST/issues/389.
Qualifying a name will never make something that wasn't already True/False/None into a True/False/None, so it's not necessary.
Added two Valid cases, one of which breaks on HEAD^.
Thank you!
I modified the fix slightly, so that it still checks for cst.Name, but also still uses the existing set of QualifiedName values.
cst.Name
QualifiedName
Summary
fixes #378 and #375 which are caused by https://github.com/Instagram/LibCST/issues/389.
Qualifying a name will never make something that wasn't already True/False/None into a True/False/None, so it's not necessary.
Test Plan
Added two Valid cases, one of which breaks on HEAD^.