5 ms·
Doesnt `if node.value in "'Paul'" or '"Paul"'` always return a truthy value, ie True or '"Paul"' or did my skills leave me?
by aitchnyu 3y ago
Doesnt `if node.value in "'Paul'" or '"Paul"'` always return a truthy value, ie True or '"Paul"' or did my skills leave me?
- amethyst 3y agoGood catch, looks like a mixup somewhere in the writing/editing/publishing pipeline. The correct examples are given in the user guide [1], and I'll see if we can get the post updated accordingly. Thank you! Edit: the post has been fixed now. 1: https://fixit.readthedocs.io/en/latest/guide.html#custom-rules https://fixit.readthedocs.io/en/latest/guide.html#custom-rul...