Skip to content

Commit ad3c865

Browse files
committed
🐛 fix(sqla): use typing types instead of collections.abc in Python 3.10
`isclass(collections.abc.GenericAlias) is True` in Python 3.10
1 parent 4be2fb6 commit ad3c865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nonebot_plugin_orm/param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .model import Model
1818
from .utils import Option, Dependency, generic_issubclass
1919

20-
if sys.version_info >= (3, 10):
20+
if sys.version_info >= (3, 11):
2121
from typing import Annotated, get_args, get_origin
2222
from collections.abc import Iterator, Sequence, AsyncIterator
2323

0 commit comments

Comments
 (0)