Ensures validators are not run within this context. Useful for function where we generate an attr validated object.
- def _recreate_cm(self)
- Return a recreated instance of self.
utils. validators. NoAttrValidationContext. _recreate_cm(self)
Return a recreated instance of self.
Allows an otherwise one-shot context manager like _GeneratorContextManager to support use as a decorator via implicit recreation.
This is a private interface just for _GeneratorContextManager. See issue #11647 for details.