Skip to content

Added new techniques #511

Added new techniques

Added new techniques #511

Triggered via pull request July 9, 2024 15:12
Status Failure
Total duration 1m 7s
Artifacts

pyright.yml

on: pull_request
Matrix: Pyright
Fit to window
Zoom out
Zoom in

Annotations

28 errors and 4 warnings
Pyright (ubuntu-latest, 3.10): instructor/function_calls.py#L142
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__config__" of type "ConfigDict | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "ConfigDict | None"     "tuple[Any, FieldInfo]" is incompatible with "ConfigDict"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__doc__" of type "str | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "str | None"     "tuple[Any, FieldInfo]" is incompatible with "str"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__validators__" of type "dict[str, classmethod[Unknown, ..., Unknown]] | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "dict[str, classmethod[Unknown, ..., Unknown]] | None"     "tuple[Any, FieldInfo]" is incompatible with "dict[str, classmethod[Unknown, ..., Unknown]]"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__cls_kwargs__" of type "dict[str, Any] | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "dict[str, Any] | None"     "tuple[Any, FieldInfo]" is incompatible with "dict[str, Any]"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L302
Argument of type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" cannot be assigned to parameter "__base__" of type "type[Model@create_model] | tuple[type[Model@create_model], ...]" in function "create_model"   Type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with type "type[Model@create_model] | tuple[type[Model@create_model], ...]"     Type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with type "type[Model@create_model]"     "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with "tuple[type[Model@create_model], ...]"       Tuple entry 1 is incorrect type         Type "T_Model@Partial | BaseModel* | PartialBase[T_Model@PartialBase]" is incompatible with type "BaseModel*"           Type "BaseModel* | PartialBase[T_Model@PartialBase]" is incompatible with type "BaseModel*" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__config__" of type "ConfigDict | None" in function "create_model" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__doc__" of type "str | None" in function "create_model" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__validators__" of type "dict[str, classmethod[Unknown, ..., Unknown]] | None" in function "create_model" (reportArgumentType)
Pyright (ubuntu-latest, 3.10): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__cls_kwargs__" of type "dict[str, Any] | None" in function "create_model" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/function_calls.py#L142
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__config__" of type "ConfigDict | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "ConfigDict | None"     "tuple[Any, FieldInfo]" is incompatible with "ConfigDict"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__doc__" of type "str | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "str | None"     "tuple[Any, FieldInfo]" is incompatible with "str"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__validators__" of type "dict[str, classmethod[Unknown, ..., Unknown]] | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "dict[str, classmethod[Unknown, ..., Unknown]] | None"     "tuple[Any, FieldInfo]" is incompatible with "dict[str, classmethod[Unknown, ..., Unknown]]"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L96
Argument of type "tuple[Any, FieldInfo]" cannot be assigned to parameter "__cls_kwargs__" of type "dict[str, Any] | None" in function "create_model"   Type "tuple[Any, FieldInfo]" is incompatible with type "dict[str, Any] | None"     "tuple[Any, FieldInfo]" is incompatible with "dict[str, Any]"     "tuple[Any, FieldInfo]" is incompatible with "None" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L302
Argument of type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" cannot be assigned to parameter "__base__" of type "type[Model@create_model] | tuple[type[Model@create_model], ...]" in function "create_model"   Type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with type "type[Model@create_model] | tuple[type[Model@create_model], ...]"     Type "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with type "type[Model@create_model]"     "tuple[type[T_Model@Partial] | type[BaseModel]*, type[PartialBase[T_Model@PartialBase]]]" is incompatible with "tuple[type[Model@create_model], ...]"       Tuple entry 1 is incorrect type         Type "T_Model@Partial | BaseModel* | PartialBase[T_Model@PartialBase]" is incompatible with type "BaseModel*"           Type "BaseModel* | PartialBase[T_Model@PartialBase]" is incompatible with type "BaseModel*" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__config__" of type "ConfigDict | None" in function "create_model" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__doc__" of type "str | None" in function "create_model" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__validators__" of type "dict[str, classmethod[Unknown, ..., Unknown]] | None" in function "create_model" (reportArgumentType)
Pyright (macos-latest, 3.11): instructor/dsl/partial.py#L304
Argument of type "tuple[Any, FieldInfo] | tuple[object, FieldInfo]" cannot be assigned to parameter "__cls_kwargs__" of type "dict[str, Any] | None" in function "create_model" (reportArgumentType)
Pyright (ubuntu-latest, 3.11)
The job was canceled because "ubuntu-latest_3_10" failed.
Pyright (ubuntu-latest, 3.11)
The operation was canceled.
Pyright (ubuntu-latest, 3.9)
The job was canceled because "ubuntu-latest_3_10" failed.
Pyright (ubuntu-latest, 3.9)
The operation was canceled.
Pyright (macos-latest, 3.10)
The job was canceled because "ubuntu-latest_3_10" failed.
Pyright (macos-latest, 3.10)
The operation was canceled.
Pyright (macos-latest, 3.9)
The job was canceled because "ubuntu-latest_3_10" failed.
Pyright (macos-latest, 3.9)
The operation was canceled.
Pyright (ubuntu-latest, 3.10)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Pyright (ubuntu-latest, 3.10)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Pyright (macos-latest, 3.11)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Pyright (macos-latest, 3.11)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/