Added Type Declarations for User
This commit is contained in:
parent
33464f1c8c
commit
a704c3a0c8
@ -4,7 +4,7 @@ from db.SQLiteClient import create_user, get_user, get_user_by_email
|
||||
|
||||
|
||||
class User(UserMixin):
|
||||
def __init__(self, id, name, email, password=None):
|
||||
def __init__(self, id: int, name: str, email: str, password: str | None = None):
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.email = email
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user