False positive with version slice
asottile opened this issue · 0 comments
asottile commented
the version slice should probably only check for :1
and :3
as there's a few "legitimate" usages of slicing sys.version
I've seen in the wild, in particular here's one from cpython that seems to be well defined: