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
Please sign in to leave a comment.
# noinspection DuplicatedCode should work.
You can add it with the following action:
Doesn't it work in your case?