Skip to content

Commit

Permalink
fix the Optional imoport from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
SparrowSurya committed Aug 22, 2024
1 parent 6e6c082 commit d84baf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/crud.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from typing import optional
from typing import Optional

from sqlalchemy.orm import Session

Expand All @@ -13,7 +13,7 @@ def create_unique_random_key(db: Session) -> str:
return key


def get_db_paste_by_key(db: Session, key: str) -> optional[schemas.PasteInfo]:
def get_db_paste_by_key(db: Session, key: str) -> Optional[schemas.PasteInfo]:
return db.query(models.Paste).filter(models.Paste.key==key).first()


Expand Down

0 comments on commit d84baf7

Please sign in to comment.