Skip to content

Commit

Permalink
Fix type annotation in Python < 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis committed Mar 12, 2024
1 parent 905c53e commit f9cf9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/hello.py
Original file line number Diff line number Diff line change
@@ -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__)
Expand Down
4 changes: 2 additions & 2 deletions src/flask_session/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
):
Expand Down

0 comments on commit f9cf9d2

Please sign in to comment.