Ryan Morshead

Results 329 comments of Ryan Morshead

I suggest taking a look at [Spectate](https://python-spectate.readthedocs.io/en/latest/usage/spectate-in-traitlets.html)

It looks like this is [expected behavior in Starlette/FastAPI](https://github.com/fastapi/fastapi/discussions/10575). The response there is pretty turse so it's hard to see exactly why.

If this turns out to be a fundamental limitation it might be nice to support dependencies that have side effects but don't actually return a value. I could imagine something...

Here's a longer running issue: https://github.com/encode/uvicorn/issues/1151

For additional context (😉) here's related [Pytest issue](https://github.com/pytest-dev/pytest-asyncio/issues/127).

I don't think `state` is a full solution since (IIRC) it isn't context aware. Thus if you spawn tasks as part of a request handler and mutate state those changes...

I finally got around to creating a tool I'm calling [NoxOpt](https://github.com/rmorshea/noxopt#noxopt). It's a very early prototype so it could use some suggestions, and probably has lots of bugs, but I...

One relatively straightforward way to enable this behavior would be for `hold_trait_notifications` to yield the ["cache" of notifications](https://github.com/ipython/traitlets/blob/13de53c537a257402035139dd6862558eb19d362/traitlets/traitlets.py#L1460) received during the context. Implementing a `mute_trait_notifications` method would then just involve...

Does pylint ignore unused `_` variables? If so, you might be able to use `**_`.