I can not work out how to format my doctests so that the code inspector considers them to be correct (or alternatively to disable checking of doctests).
Here is an example:
"""Context manager to ensure that all observers are correctly
notified of changes to the model.
>>> m = BaseTableModel(None, , )
>>> with m.update():
The results from the code inspector are:
PEP 8: unexpected indentation
PEP 8: expected an indented block
Can you tell me how I should format this code so that the inspector thinks that it is valid, or how to turn off code inspection for doctests?