Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type annotation in Python < 3.8 #219

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/hello.py
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change not relevant to this PR, it changes by the ruff.

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
Loading