steve-mavens
steve-mavens
I've had this problem with decorators of my own that add attributes to the decorated function. I noticed that the core Python function `functools.wraps` adds an attribute `__wrapped__` which likewise...
Test to check whether there's a solution yet for `functools`: ```python from functools import wraps @wraps(len) def my_len(val: str) -> int: return len(val) if __name__ == '__main__': assert my_len.__wrapped__ is...
I realise I'm probably just making a can of worms worse, but if you have a feature to rewind a generator before retrying, should you also have a feature to...
@SyntaxColoring That said, I would actually use an option that enables absolutely everything, and is guaranteed to do so in future. The reason is that when I'm writing a mypy...
Indeed I have also hit this problem. I couldn't figure out how to get it all working. You'd think that `event_loop` fixture should be unnecessary, but it's a workaround for...
@christiansicari there's a bit of redaction here since it's proprietary code, and I haven't included all the imports, but it's a bit like this: ``` from fakeredis.aioredis import FakeRedis from...
I should probably warn that this code is a bit scrappy. It doesn't bother undoing the modification to `app.dependency_overrides`, which happens to work with my code because every test that...
I can add something about how to intersect fastapi and async fakeredis :-) I'm making some assumptions about how the fastapi app is set up, and I don't know how...
I don't think it's complete. The code you've used doesn't explain what `create_backend` is, so I don't think there's enough information there for a fastapi user to adapt the code...
I've just cobbled together something for an internal library where, in CI tests, I first `poetry install` and test, then `pip install` a whole bunch of old stuff over that...