PyCharm:Inspections
lastmod 2025-07-24created 2019-04-1130 edits
List of inspections available in PyCharm.
Suppressing comments
Just add a comment along the lines of # noinspection PyPep8 or # noinspection PyPep8, PyPep8Naming.
- PyPep8
- PyPep8Naming
- Function name should be lowercase
- CamelCase variable imported as constant
- Unexpected type(s): {...} Possible type(s): {...}
- Expected type '...', got '...' instead
- Unexpected argument
- Method 'xxx' may be 'static'
- Usually first parameter of a method is named '{...}'
- This decorator will not receive a callable it may expect; the built-in decorator returns a special object
- Package containing module '{MODULE_NAME}' is not listed in the project requirements
- Access to a protected member '{_member_name}' of a module
- Type of '{member_name}' is incompatible with '{protocol_type}'
- Shadows built-in name {...}
- Shadows name '...' from outer scope
- ModuleNotFoundError: No module named '...'
- '...' in the try block with 'except ImportError' should also be defined in the except block
- Cannot find reference
- Unresolved attribute reference '...' for class '...'
- Typo errors.
- '...' object is not callable
noinspection example
Just add noinspection as a comment, as shown below.
# noinspection PyUnusedLocal, PyUnreachableCode
def on_show(self, event):
if not self.name:
wx.MessageBox(lang.NAME_IS_EMPTY, lang.INFO, wx.OK | wx.ICON_INFORMATION)
self.Close()
Find script
$ unzip -p lib/pycharm.jar com/jetbrains/python/PyBundle.properties | grep -B1 INSP.NAME | grep '^#' | sed 's|Inspection||g' | sed -e 's|#\s\{,1\}|# noinspection |'
See also
- Python
- PyCharm
- flake8
- WebStorm:Inspections
- pycodestyle - Simple Python style checker in one Python file