Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type for async session fixture in tests. #125

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

slaarti
Copy link
Contributor

@slaarti slaarti commented Jul 8, 2024

Description

Another PR based on stuff discovered while working on #72, this one changes the return type for the async session fixture, because yield makes the fixture function a generator.

Changes

Make the return type for the async session fixtures AsyncGenerator[AsyncSession] instead of just AsyncSession.

Tests

No tests added or changed; just fixture typing.

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • All new and existing tests passed.

@igorbenav
Copy link
Owner

Nice catch!

@igorbenav igorbenav merged commit ef29727 into igorbenav:main Jul 9, 2024
7 checks passed
@slaarti slaarti deleted the test_session_typing branch July 9, 2024 04:55
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.

2 participants