diff --git a/examples/hello.py b/examples/hello.py index c5f17632..16599b3c 100644 --- a/examples/hello.py +++ b/examples/hello.py @@ -1,6 +1,5 @@ from flask import Flask, session from flask_session import Session -from redis.exceptions import RedisError app = Flask(__name__) app.config.from_object(__name__) diff --git a/src/flask_session/base.py b/src/flask_session/base.py index 3d2e03b7..623484c7 100644 --- a/src/flask_session/base.py +++ b/src/flask_session/base.py @@ -10,7 +10,7 @@ import random from datetime import timedelta as TimeDelta -from typing import Any, Optional +from typing import Any, Dict, Optional import msgspec from flask import Flask, Request, Response @@ -53,7 +53,7 @@ def __bool__(self) -> bool: def __init__( self, - initial: Optional[dict[str, Any]] = None, + initial: Optional[Dict[str, Any]] = None, sid: Optional[str] = None, permanent: Optional[bool] = None, ):