W605: false positive
someonesdad1 opened this issue · comments
# pycodestyle 2.8.0 gives W605 on this docstring and string
class Dummy:
'''d.rmr(r"\.jpg$", ic=True)'''
pass
s = 'd.rmr(r"\.jpg$", ic=True)'
This is a condensation of some testing on some of my code. These are legitimate raw strings for re.compile() and shouldn't exhibit a warning.
Anthony: arg, you're right! My apologies for wasting your time.
…On Fri, Aug 5, 2022 at 10:29 AM Anthony Sottile ***@***.***> wrote:
run your code with python -Werror and you'll find you are incorrect --
also search the issue tracker next time
duplicate of #975 <#975> #958
<#958> #902
<#902> #854
<#854> #822
<#822> #814
<#814> #766
<#766>
—
Reply to this email directly, view it on GitHub
<#1093 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTUPIN2VLS3EYMXWMOMG7LVXU6QNANCNFSM55WTWYBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>