Skip to content

Commit 1e6d374

Browse files
committed
update dependencies
1 parent 2398c56 commit 1e6d374

6 files changed

Lines changed: 1251 additions & 1032 deletions

File tree

nonebot_plugin_session_orm/migrations/71a72119935f_data_migrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
创建时间: 2023-10-12 13:31:08.788371
66
77
"""
8+
89
from __future__ import annotations
910

1011
from collections.abc import Sequence

nonebot_plugin_session_orm/migrations/fff55366306e_init_db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
创建时间: 2023-10-07 16:34:54.127642
66
77
"""
8+
89
from __future__ import annotations
910

1011
from collections.abc import Sequence

nonebot_plugin_session_orm/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22
import sys
3-
from typing import List, Optional, Union
3+
from typing import Optional, Union
44

55
from nonebot.log import logger
66
from nonebot_plugin_orm import Model, get_session
@@ -54,7 +54,7 @@ def filter_statement(
5454
include_platform: bool = True,
5555
include_bot_type: bool = True,
5656
include_bot_id: bool = True,
57-
) -> List[ColumnElement[bool]]:
57+
) -> list[ColumnElement[bool]]:
5858
id_type = min(max(id_type, 0), SessionIdType.GROUP_USER)
5959

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

73-
whereclause: List[ColumnElement[bool]] = []
73+
whereclause: list[ColumnElement[bool]] = []
7474
if include_bot_id:
7575
whereclause.append(SessionModel.bot_id == session.bot_id)
7676
if include_bot_type:

0 commit comments

Comments
 (0)