Skip to content

[ACEM] mypy x llteacher#25

Open
automaticcodeevolutionmanagement[bot] wants to merge 1 commit intomainfrom
acem/mypy-1.19.1-20260318-082644
Open

[ACEM] mypy x llteacher#25
automaticcodeevolutionmanagement[bot] wants to merge 1 commit intomainfrom
acem/mypy-1.19.1-20260318-082644

Conversation

@automaticcodeevolutionmanagement
Copy link
Copy Markdown

mypy x llteacher

What This PR Does

Fixed 5 union-attr type errors in 1 files using LLM-based fixes.

Details

  • Policy: Mypy 1.19.1
  • Initiative ID: 18
  • Fixes Applied: 5 violations
  • Files Modified: 1

Original Violations

src/llm/services.py
src/llm/services.py:389: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:393: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:399: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:881: error: Item "tuple[str | Any, ...]" of "tuple[str, Any] | ChatCompletionChunk" has no attribute "choices"  [union-attr]
src/llm/services.py:882: error: Item "tuple[str | Any, ...]" of "tuple[str, Any] | ChatCompletionChunk" has no attribute "choices"  [union-attr]
---

This pull request was automatically created by ACEM.

Policy: Mypy 1.19.1
Fixed: 5 violations

Original Violations:

src/llm/services.py:
src/llm/services.py:389: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:393: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:399: error: Item "ChatCompletionMessageCustomToolCall" of "ChatCompletionMessageFunctionToolCall | ChatCompletionMessageCustomToolCall" has no attribute "function"  [union-attr]
src/llm/services.py:881: error: Item "tuple[str | Any, ...]" of "tuple[str, Any] | ChatCompletionChunk" has no attribute "choices"  [union-attr]
src/llm/services.py:882: error: Item "tuple[str | Any, ...]" of "tuple[str, Any] | ChatCompletionChunk" has no attribute "choices"  [union-attr]

Automated by ACEM - Initiative #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants