Skip to content

Feature: add pydantic v2 compat #108

Feature: add pydantic v2 compat

Feature: add pydantic v2 compat #108

Triggered via pull request February 29, 2024 16:15
Status Failure
Total duration 35s
Artifacts

pyright.yml

on: pull_request
Pyright Lint
27s
Pyright Lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Pyright Lint: src/plugins/github/cache/message_tag.py#L103
Argument of type "Tag" cannot be assigned to parameter "type_" of type "type[T@parse_raw_as]" in function "parse_raw_as" (reportArgumentType)
Pyright Lint: src/plugins/github/cache/user_auth_state.py#L52
Argument of type "UserInfo" cannot be assigned to parameter "type_" of type "type[T@parse_raw_as]" in function "parse_raw_as" (reportArgumentType)
Pyright Lint: src/plugins/github/libs/auth.py#L51
Argument of type "Any" cannot be assigned to parameter "response_model" of type "type[T@arequest]" in function "arequest" (reportArgumentType)
Pyright Lint: src/plugins/github/libs/renderer/globals.py#L92
Argument of type "Any" cannot be assigned to parameter "response_model" of type "type[T@arequest]" in function "arequest" (reportArgumentType)
Pyright Lint: src/plugins/github/models/group.py#L34
Argument of type "GroupInfo" cannot be assigned to parameter "type_" of type "type[T@parse_obj_as]" in function "parse_obj_as" (reportArgumentType)
Pyright Lint: src/plugins/github/models/subscription.py#L55
Argument of type "TargetInfo" cannot be assigned to parameter "type_" of type "type[T@parse_obj_as]" in function "parse_obj_as" (reportArgumentType)
Pyright Lint: src/plugins/github/models/user.py#L34
Argument of type "UserInfo" cannot be assigned to parameter "type_" of type "type[T@parse_obj_as]" in function "parse_obj_as" (reportArgumentType)
Pyright Lint: src/providers/platform/extractors/__init__.py#L29
Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
Pyright Lint: src/providers/platform/extractors/__init__.py#L35
Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
Pyright Lint: src/providers/platform/extractors/__init__.py#L41
Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)