mirror of
https://github.com/evroon/bracket.git
synced 2026-04-20 23:37:02 -04:00
Update pyrefly to 0.44 (#1457)
This commit is contained in:
@@ -55,7 +55,7 @@ dev = [
|
||||
"mypy==1.19.0",
|
||||
"pluggy==1.6.0",
|
||||
"pylint==4.0.2",
|
||||
"pyrefly==0.41.3",
|
||||
"pyrefly==0.44.0",
|
||||
"pytest-asyncio==1.3.0",
|
||||
"pytest-cov==7.0.0",
|
||||
"pytest-xdist==3.8.0",
|
||||
|
||||
@@ -23,7 +23,7 @@ from bracket.models.db.stage_item_inputs import (
|
||||
)
|
||||
from bracket.models.db.team import Team, TeamInsertable
|
||||
from bracket.models.db.tournament import Tournament, TournamentInsertable
|
||||
from bracket.models.db.user import UserInDB, UserInsertable
|
||||
from bracket.models.db.user import UserBase, UserInDB
|
||||
from bracket.models.db.user_x_club import UserXClub, UserXClubInsertable, UserXClubRelation
|
||||
from bracket.schema import (
|
||||
clubs,
|
||||
@@ -67,7 +67,7 @@ async def inserted_generic[BaseModelT: BaseModel](
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def inserted_user(user: UserInsertable) -> AsyncIterator[UserInDB]:
|
||||
async def inserted_user(user: UserBase) -> AsyncIterator[UserInDB]:
|
||||
async with inserted_generic(user, users, UserInDB) as row_inserted:
|
||||
yield cast("UserInDB", row_inserted)
|
||||
|
||||
@@ -138,7 +138,9 @@ async def inserted_stage_item_input(
|
||||
stage_item_input: StageItemInputInsertable,
|
||||
) -> AsyncIterator[StageItemInputFinal | StageItemInputEmpty]:
|
||||
async with inserted_generic(
|
||||
stage_item_input, stage_item_inputs, StageItemInputBase
|
||||
stage_item_input,
|
||||
stage_item_inputs,
|
||||
StageItemInputBase, # pyrefly: ignore[bad-argument-type]
|
||||
) as row_inserted:
|
||||
if stage_item_input.team_id is not None:
|
||||
[team] = await get_teams_by_id(
|
||||
|
||||
Reference in New Issue
Block a user