Skip to content

Conversation

@ascopes
Copy link

@ascopes ascopes commented Oct 10, 2025

FIxes an issue where running the outer group produces an exception "RuntimeError: Backend None Unknown".

If no anyio backend is specified, then asyncio is used as the default.

FIxes an issue where running the outer group produces
an exception "RuntimeError: Backend None Unknown".

If no anyio backend is specified, then asyncio is used as
the default.
@ascopes
Copy link
Author

ascopes commented Oct 11, 2025

for ref a workaround right now is to subclass group or command and override the call dunder.

class MyGroup(asyncclick.Group):
    def __call__(self, *_: Any, **__: Any) -> None:
        asyncio.run(self._main())


@asyncclick.group(cls=MyGroup)
async def main_group() -> None:
    ...


if __name__ == "__main__":
    main_group()

smurfix added a commit to M-o-a-T/asyncclick that referenced this pull request Oct 11, 2025
@smurfix
Copy link
Collaborator

smurfix commented Oct 14, 2025

Closed in acc2932

@smurfix smurfix closed this Oct 14, 2025
@ascopes
Copy link
Author

ascopes commented Oct 14, 2025

Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants