Ryan Peach

Results 131 comments of Ryan Peach

I've seen this issue recently. I dont have time to fix it at the moment, but there are some tricks to making it work in the comments of my code...

> Another possibility would be to assign a probability of 1 and reward of 0 (or less) to "remaining in the same state", but this seems a bit artificial, since...

It’s been a while since I posted that, but this answer should still hold up. Let’s say there are no possibilities to act in a certain state. The MDP over...

@cauebs Certainly, I'm somewhat new to async runtimes so I just assumed that asyncio was the bultin and thus "only" one. We can use anyio. For some reason when I...

Actually now that error isn't reproducing. My current version seems to work.

I think just adding those decorators to the library and having @app.command() auto detect if the function it's decorating is async or not and just pick the appropriate decoration. Not...

Actually the decorator @cauebs wrote doesn't make sense to me (maybe I just misunderstand click and anyio). The point is to support running the asynchronous function in two modes: 1....

Tested the code I posted above and it works. You could probably just add it as a method to typer.Typer. I'll make a pr.

Unsure why @aogier downvoted. It runs and its integrating well into my repo.

Noted but I don't think I've been impolite in this thread... And I believe I've added a relevant feature (the ability to wrap async functions as cli commands). Correct me...