Add return type annotations to db_calls.py async functions
#20
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All five async DB functions have no return type annotations. They return
dict,None, or raiseValueError. Callers access keys without checking forNone. Adding-> Optional[dict]enables static analysis.Priority: low | Labels: tech-debt
PR #47 opened: #47
Added
-> Optional[dict]todb_get,-> aiohttp.ClientResponsetourl_get, and-> dicttodb_patch,db_post,db_put, anddb_delete. Also addedOptionalto the typing import.