Skip to content

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Sep 26, 2025

No description provided.

Copy link

Docs Preview

commit: 963ac22
Preview URL: https://a7b47fc9-pydantic-ai-previews.pydantic.workers.dev

Comment on lines +115 to +116
def _enter_lock(self) -> anyio.Lock:
return anyio.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def _enter_lock(self) -> anyio.Lock:
return anyio.Lock()
def _enter_lock(self) -> anyio.Lock:
# We use a cached_property for this because it seems to work better with temporal...
return anyio.Lock()

for i, c in enumerate(awaitables):
tg.start_soon(run_and_store, c, i)

return results
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we return a tuple?


else:
# TODO(Marcelo): We need to replace this with `anyio.as_completed()` from
# https://github.com/agronholm/anyio/pull/890.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You intend to vendor that function right? Because I don't think we should wait until that's released and then bump the requirement all the way to the latest -- that'd be annoying for users

@DouweM DouweM self-assigned this Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants