Many async web frameworks provide something like Flask's @app.route(...) decorator, where functions have to be async. However this is also a case where it's fine not to have any checkpoints, if you have something like:
So I'd like to support a no_checkpoint_warning_decorators option listing the names or dotted-names of decorators which should disable TRIO107 and 108 checks inside those functions, as we currently do for asynccontextmanager.
Many async web frameworks provide something like Flask's
@app.route(...)
decorator, where functions have to be async. However this is also a case where it's fine not to have any checkpoints, if you have something like:So I'd like to support a
no_checkpoint_warning_decorators
option listing the names or dotted-names of decorators which should disable TRIO107 and 108 checks inside those functions, as we currently do forasynccontextmanager
.