Skip to content

Commit a91aabe

Browse files
committed
use future annotations with typing_extensions NotRequired
1 parent a6e0188 commit a91aabe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fastapi_azure_auth/openid_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
from __future__ import annotations
2+
13
import logging
24
import ssl
35
from datetime import datetime, timedelta
4-
from typing import TYPE_CHECKING, Any, Dict, List, NotRequired, Optional, TypedDict
6+
from typing import TYPE_CHECKING, Any, Dict, List, Optional, TypedDict
57

68
import jwt
79
from fastapi import HTTPException, status
810
from httpx import AsyncClient
911

1012
if TYPE_CHECKING: # pragma: no cover
1113
from jwt.algorithms import AllowedPublicKeys
14+
from typing_extensions import NotRequired # added in python 3.11
1215

1316
log = logging.getLogger('fastapi_azure_auth')
1417

0 commit comments

Comments
 (0)