mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-02-26 20:54:44 +00:00
💥 Remove: 移除 Python 3.9 支持 (#3860)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Annotated, Any, Optional
|
||||
from typing import Annotated, Any
|
||||
|
||||
from pydantic import BaseModel, ValidationError
|
||||
import pytest
|
||||
@@ -144,7 +144,7 @@ def test_validate_json():
|
||||
test3: bool
|
||||
test4: dict
|
||||
test5: list
|
||||
test6: Optional[int]
|
||||
test6: int | None
|
||||
|
||||
assert type_validate_json(
|
||||
TestModel,
|
||||
|
||||
Reference in New Issue
Block a user