Skip to content

Migrate to UV

Migrate to UV #1626

Triggered via pull request December 25, 2024 02:59
Status Failure
Total duration 26s
Artifacts

pyright.yml

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

Annotations

47 errors and 33 warnings
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L11
Type of "IterableModel" is partially unknown   Type of "IterableModel" is "(subtask_class: type[Unknown], name: str | None = None, description: str | None = None) -> type[Unknown]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L13
Type of "openai_moderation" is partially unknown   Type of "openai_moderation" is "(client: Unknown) -> ((str) -> str)" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L15
Type of "openai_schema" is partially unknown   Type of "openai_schema" is "(cls: type[Unknown]) -> OpenAISchema" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L16
Type of "apatch" is partially unknown   Type of "apatch" is "(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L16
Type of "patch" is partially unknown   Type of "patch" is "Overload[(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (create: (**T_ParamSpec@patch) -> T_Retval@patch, mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate, (create: Awaitable[T_Retval@patch], mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L21
Type of "from_openai" is partially unknown   Type of "from_openai" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L53
Type of "from_anthropic" is partially unknown   Type of "from_anthropic" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L61
Type of "from_gemini" is partially unknown   Type of "from_gemini" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[True] = True, **kwargs: Any) -> AsyncInstructor, (client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[False] = False, **kwargs: Any) -> Instructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L66
Type of "from_fireworks" is partially unknown   Type of "from_fireworks" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9): instructor/__init__.py#L71
Type of "from_cerebras" is partially unknown   Type of "from_cerebras" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (macos-latest, 3.10)
The job was canceled because "ubuntu-latest_3_9" failed.
Pyright (macos-latest, 3.10)
The operation was canceled.
Pyright (macos-latest, 3.9)
The job was canceled because "ubuntu-latest_3_9" failed.
Pyright (macos-latest, 3.9)
The operation was canceled.
Pyright (macos-latest, 3.11)
The job was canceled because "ubuntu-latest_3_9" failed.
Pyright (macos-latest, 3.11): instructor/__init__.py#L11
Type of "IterableModel" is partially unknown   Type of "IterableModel" is "(subtask_class: type[Unknown], name: str | None = None, description: str | None = None) -> type[Unknown]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L13
Type of "openai_moderation" is partially unknown   Type of "openai_moderation" is "(client: Unknown) -> ((str) -> str)" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L15
Type of "openai_schema" is partially unknown   Type of "openai_schema" is "(cls: type[Unknown]) -> OpenAISchema" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L16
Type of "apatch" is partially unknown   Type of "apatch" is "(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L16
Type of "patch" is partially unknown   Type of "patch" is "Overload[(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (create: (**T_ParamSpec@patch) -> T_Retval@patch, mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate, (create: Awaitable[T_Retval@patch], mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L21
Type of "from_openai" is partially unknown   Type of "from_openai" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L53
Type of "from_anthropic" is partially unknown   Type of "from_anthropic" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L61
Type of "from_gemini" is partially unknown   Type of "from_gemini" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[True] = True, **kwargs: Any) -> AsyncInstructor, (client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[False] = False, **kwargs: Any) -> Instructor]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L66
Type of "from_fireworks" is partially unknown   Type of "from_fireworks" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (macos-latest, 3.11): instructor/__init__.py#L71
Type of "from_cerebras" is partially unknown   Type of "from_cerebras" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10)
The job was canceled because "ubuntu-latest_3_9" failed.
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L11
Type of "IterableModel" is partially unknown   Type of "IterableModel" is "(subtask_class: type[Unknown], name: str | None = None, description: str | None = None) -> type[Unknown]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L13
Type of "openai_moderation" is partially unknown   Type of "openai_moderation" is "(client: Unknown) -> ((str) -> str)" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L15
Type of "openai_schema" is partially unknown   Type of "openai_schema" is "(cls: type[Unknown]) -> OpenAISchema" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L16
Type of "apatch" is partially unknown   Type of "apatch" is "(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L16
Type of "patch" is partially unknown   Type of "patch" is "Overload[(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (create: (**T_ParamSpec@patch) -> T_Retval@patch, mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate, (create: Awaitable[T_Retval@patch], mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L21
Type of "from_openai" is partially unknown   Type of "from_openai" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L53
Type of "from_anthropic" is partially unknown   Type of "from_anthropic" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L61
Type of "from_gemini" is partially unknown   Type of "from_gemini" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[True] = True, **kwargs: Any) -> AsyncInstructor, (client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[False] = False, **kwargs: Any) -> Instructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L66
Type of "from_fireworks" is partially unknown   Type of "from_fireworks" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.10): instructor/__init__.py#L71
Type of "from_cerebras" is partially unknown   Type of "from_cerebras" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11)
The job was canceled because "ubuntu-latest_3_9" failed.
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L11
Type of "IterableModel" is partially unknown   Type of "IterableModel" is "(subtask_class: type[Unknown], name: str | None = None, description: str | None = None) -> type[Unknown]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L13
Type of "openai_moderation" is partially unknown   Type of "openai_moderation" is "(client: Unknown) -> ((str) -> str)" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L15
Type of "openai_schema" is partially unknown   Type of "openai_schema" is "(cls: type[Unknown]) -> OpenAISchema" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L16
Type of "apatch" is partially unknown   Type of "apatch" is "(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L16
Type of "patch" is partially unknown   Type of "patch" is "Overload[(client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (client: Unknown, mode: Mode = Mode.TOOLS) -> Unknown, (create: (**T_ParamSpec@patch) -> T_Retval@patch, mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate, (create: Awaitable[T_Retval@patch], mode: Mode = Mode.TOOLS) -> InstructorChatCompletionCreate]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L21
Type of "from_openai" is partially unknown   Type of "from_openai" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L53
Type of "from_anthropic" is partially unknown   Type of "from_anthropic" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.ANTHROPIC_TOOLS, enable_prompt_caching: bool = False, beta: bool = False, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L61
Type of "from_gemini" is partially unknown   Type of "from_gemini" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[True] = True, **kwargs: Any) -> AsyncInstructor, (client: Unknown, mode: Mode = instructor.Mode.GEMINI_TOOLS, use_async: Literal[False] = False, **kwargs: Any) -> Instructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L66
Type of "from_fireworks" is partially unknown   Type of "from_fireworks" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.FIREWORKS_JSON, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.11): instructor/__init__.py#L71
Type of "from_cerebras" is partially unknown   Type of "from_cerebras" is "Overload[(client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> Instructor, (client: Unknown, mode: Mode = instructor.Mode.CEREBRAS_TOOLS, **kwargs: Any) -> AsyncInstructor]" (reportUnknownVariableType)
Pyright (ubuntu-latest, 3.9)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Pyright (ubuntu-latest, 3.9): instructor/client.py#L21
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/client_cohere.py#L10
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/distil.py#L17
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/multimodal.py#L20
Import "requests" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/patch.py#L11
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/reask.py#L9
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/_types/_alias.py#L3
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.9): instructor/dsl/citation.py#L81
Import "regex" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/client.py#L21
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/client_cohere.py#L10
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/distil.py#L17
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/multimodal.py#L20
Import "requests" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/patch.py#L11
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/reask.py#L9
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/_types/_alias.py#L3
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (macos-latest, 3.11): instructor/dsl/citation.py#L81
Import "regex" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/client.py#L21
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/client_cohere.py#L10
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/distil.py#L17
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/multimodal.py#L20
Import "requests" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/patch.py#L11
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/reask.py#L9
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/_types/_alias.py#L3
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.10): instructor/dsl/citation.py#L81
Import "regex" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/client.py#L21
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/client_cohere.py#L10
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/distil.py#L17
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/multimodal.py#L20
Import "requests" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/patch.py#L11
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/reask.py#L9
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/_types/_alias.py#L3
Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
Pyright (ubuntu-latest, 3.11): instructor/dsl/citation.py#L81
Import "regex" could not be resolved from source (reportMissingModuleSource)