Skip to content

Commit

Permalink
fix: <3.9 set to tp.Set
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Dec 3, 2021
1 parent f029796 commit 3aa6528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/test_security_jwt_general.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime
from uuid import uuid1
from typing import Set

from fastapi import FastAPI, Security
from fastapi.testclient import TestClient
Expand All @@ -13,7 +14,7 @@
refresh_security = JwtRefreshBearer(secret_key="secret_key")


unique_identifiers_database: set[str] = set()
unique_identifiers_database: Set[str] = set()


@app.post("/auth")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_security_jwt_general_optional.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import datetime
from uuid import uuid1
from typing import Optional
from typing import Optional, Set

from fastapi import FastAPI, Security
from fastapi.testclient import TestClient
Expand All @@ -14,7 +14,7 @@
refresh_security = JwtRefreshBearer(secret_key="secret_key", auto_error=False)


unique_identifiers_database: set[str] = set()
unique_identifiers_database: Set[str] = set()


@app.post("/auth")
Expand Down

0 comments on commit 3aa6528

Please sign in to comment.