Skip to content

Commit

Permalink
style: annotate return type
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Feb 27, 2024
1 parent 59b4a0c commit 5e2e63d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_translate.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# pylint: disable=missing-function-docstring,redefined-outer-name

from typing import Generator

from fastapi.testclient import TestClient
from pytest import fixture

from server import initialise


@fixture()
def client():
def client() -> Generator[TestClient, None, None]:
with TestClient(initialise()) as client:
yield client

Expand Down

0 comments on commit 5e2e63d

Please sign in to comment.