Skip to content

Commit

Permalink
Add type annotation to client_for_basic_auth
Browse files Browse the repository at this point in the history
The lack of annotation was masking the `MarklogicApiClient` instance
from type checking. By adding this, mypy will correctly warn us if we're
committing type violations.
  • Loading branch information
jacksonj04 committed Nov 9, 2023
1 parent cfbd69e commit a889617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi_server/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def client_for_basic_auth(
token_basic: TokenModel = Security(get_token_basic),
):
) -> MarklogicApiClient:
return MarklogicApiClient(
host=MARKLOGIC_HOST,
username=token_basic.username,
Expand Down

0 comments on commit a889617

Please sign in to comment.