Skip to content

Commit

Permalink
🎨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Nov 23, 2024
1 parent 6acbc0e commit 7af02be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nonebot_plugin_alconna/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def AlconnaDuplication() -> Duplication: ...


@overload
def AlconnaDuplication(__t: type[T_Duplication]) -> T_Duplication: ...
def AlconnaDuplication(_t: type[T_Duplication]) -> T_Duplication: ...


def AlconnaDuplication(__t: Optional[type[T_Duplication]] = None) -> Duplication:
def AlconnaDuplication(_t: Optional[type[T_Duplication]] = None) -> Duplication:
def _alconna_match(state: T_State) -> Duplication:
res = _alconna_result(state)
gt = __t or generate_duplication(res.source)
gt = _t or generate_duplication(res.source)
return gt(res.result)

return Depends(_alconna_match, use_cache=False)
Expand Down

0 comments on commit 7af02be

Please sign in to comment.