Skip to content

Commit e7b0a1c

Browse files
committed
fix(lint): use pyright ignore syntax for pyright-specific errors
1 parent 7eb6a1a commit e7b0a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/anthropic/_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,13 @@ def construct_type(*, value: object, type_: object, metadata: Optional[List[Any]
576576
and (issubclass(origin, BaseModel) or issubclass(origin, GenericModel))
577577
):
578578
if is_list(value):
579-
return [_type.construct(**entry) if is_mapping(entry) else entry for entry in value] # type: ignore[arg-type]
579+
return [_type.construct(**entry) if is_mapping(entry) else entry for entry in value] # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
580580

581581
if is_mapping(value):
582582
if inspect.isclass(_type) and issubclass(_type, BaseModel):
583583
return _type.construct(**value) # type: ignore[arg-type]
584584

585-
return _type.construct(**value) # type: ignore[arg-type, return-value]
585+
return _type.construct(**value) # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
586586

587587
if origin == list:
588588
if not is_list(value):

0 commit comments

Comments
 (0)