Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Jan 1, 2025
1 parent 2398c56 commit 1e6d374
Show file tree
Hide file tree
Showing 6 changed files with 1,251 additions and 1,032 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
创建时间: 2023-10-12 13:31:08.788371
"""

from __future__ import annotations

from collections.abc import Sequence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
创建时间: 2023-10-07 16:34:54.127642
"""

from __future__ import annotations

from collections.abc import Sequence
Expand Down
6 changes: 3 additions & 3 deletions nonebot_plugin_session_orm/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import sys
from typing import List, Optional, Union
from typing import Optional, Union

from nonebot.log import logger
from nonebot_plugin_orm import Model, get_session
Expand Down Expand Up @@ -54,7 +54,7 @@ def filter_statement(
include_platform: bool = True,
include_bot_type: bool = True,
include_bot_id: bool = True,
) -> List[ColumnElement[bool]]:
) -> list[ColumnElement[bool]]:
id_type = min(max(id_type, 0), SessionIdType.GROUP_USER)

if session.level == SessionLevel.LEVEL0:
Expand All @@ -70,7 +70,7 @@ def filter_statement(
include_id2 = bool((id_type >> 1) & 1)
include_id3 = bool((id_type >> 2) & 1)

whereclause: List[ColumnElement[bool]] = []
whereclause: list[ColumnElement[bool]] = []
if include_bot_id:
whereclause.append(SessionModel.bot_id == session.bot_id)
if include_bot_type:
Expand Down
Loading

0 comments on commit 1e6d374

Please sign in to comment.