File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ async def handler() -> Model:
442442def test_pydantic_v2_round_trip () -> None :
443443 class Submodel (pydantic_v2 .BaseModel ):
444444 bar : str
445- baz : list [int ]
445+ baz : List [int ]
446446
447447 class Model (pydantic_v2 .BaseModel ):
448448 foo : pydantic_v2 .Json [Submodel ]
@@ -451,7 +451,7 @@ class Model(pydantic_v2.BaseModel):
451451
452452 @get ("/" )
453453 async def handler () -> Model :
454- return Model (foo = resp ) # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
454+ return Model (foo = resp ) # pyright: ignore[reportArgumentType]
455455
456456 with create_test_client ([handler ], plugins = [PydanticPlugin (round_trip = True )]) as client :
457457 assert client .get ("/" ).json () == {"foo" : resp }
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ def test_re_exports() -> None:
4040
4141 # deprecated, to be removed later
4242 with pytest .warns (DeprecationWarning ):
43- assert sqlalchemy .AuditColumns is sa_base .AuditColumns
43+ assert sqlalchemy .AuditColumns is sa_base .AuditColumns # type: ignore[attr-defined]
4444 assert sqlalchemy .BigIntAuditBase is sa_base .BigIntAuditBase
4545 assert sqlalchemy .BigIntBase is sa_base .BigIntBase
46- assert sqlalchemy .BigIntPrimaryKey is sa_base .BigIntPrimaryKey
46+ assert sqlalchemy .BigIntPrimaryKey is sa_base .BigIntPrimaryKey # type: ignore[attr-defined]
4747 assert sqlalchemy .CommonTableAttributes is sa_base .CommonTableAttributes
4848 assert sqlalchemy .UUIDAuditBase is sa_base .UUIDAuditBase
4949 assert sqlalchemy .UUIDBase is sa_base .UUIDBase
50- assert sqlalchemy .UUIDPrimaryKey is sa_base .UUIDPrimaryKey
50+ assert sqlalchemy .UUIDPrimaryKey is sa_base .UUIDPrimaryKey # type: ignore[attr-defined]
5151 assert sqlalchemy .orm_registry is sa_base .orm_registry
You can’t perform that action at this time.
0 commit comments