What is Python noinspection tag for code duplicate inspection

Hello PyCharm Forums,

I am wondering, what is the `# noinspection XYZ` tag for duplicate code fragment inspections in Python?  I can't find it documented anywhere.

I've tried:

  • `# noinspection Duplicates`
  • `//noinspection Duplicates`
  • `# SuppressWarnings("Duplicates")`
  • `# noinspection DuplicatedCode`

FYI. I asked this same question in Stack Overflow (more details are there), to no avail: https://stackoverflow.com/questions/61465720/pycharm-python-what-is-noinspection-tag-for-code-duplicates

Related: https://youtrack.jetbrains.com/issue/PY-38309

0
1 comment

# noinspection DuplicatedCode should work.

You can add it with the following action:

Doesn't it work in your case?

1

Please sign in to leave a comment.