Skip to content

Commit df782d0

Browse files
committed
Re-generate the requirement file with Python 3.9
1 parent bacb763 commit df782d0

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

requirements.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.13
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
77
blinker==1.9.0
88
# via flask
9-
click==8.2.1
9+
click==8.1.8
1010
# via flask
1111
coverage==7.10.3
1212
# via -r requirements.in
@@ -19,6 +19,8 @@ flask-login==0.6.3
1919
# via -r requirements.in
2020
flask-sqlalchemy==3.1.1
2121
# via -r requirements.in
22+
importlib-metadata==8.7.0
23+
# via flask
2224
itsdangerous==2.2.0
2325
# via flask
2426
jinja2==3.1.6
@@ -38,3 +40,5 @@ werkzeug==3.1.3
3840
# via
3941
# flask
4042
# flask-login
43+
zipp==3.23.0
44+
# via importlib-metadata

watchlist/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Optional
2+
13
from sqlalchemy import String
24
from sqlalchemy.orm import Mapped, mapped_column
35
from flask_login import UserMixin
@@ -10,8 +12,8 @@ class User(db.Model, UserMixin):
1012
__tablename__ = 'user'
1113
id: Mapped[int] = mapped_column(primary_key=True)
1214
name: Mapped[str] = mapped_column(String(20))
13-
username: Mapped[str | None] = mapped_column(String(20))
14-
password_hash: Mapped[str | None] = mapped_column(String(128))
15+
username: Mapped[Optional[str]] = mapped_column(String(20))
16+
password_hash: Mapped[Optional[str]] = mapped_column(String(128))
1517

1618
def set_password(self, password):
1719
self.password_hash = generate_password_hash(password)

0 commit comments

Comments
 (0)