mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-07 02:58:02 +00:00
22 lines
278 B
Python
22 lines
278 B
Python
from typing import Optional
|
|
|
|
|
|
class Session:
|
|
pass
|
|
|
|
|
|
class User:
|
|
id: int
|
|
username: str
|
|
|
|
|
|
async def get_db() -> Session:
|
|
db = Session()
|
|
try:
|
|
yield db
|
|
finally:
|
|
pass
|
|
|
|
|
|
async def get_current_user_record(db: Session) -> User:
|
|
return User()
|