Skip to content

Commit 78c9468

Browse files
fix: minimize dependency upgrade compatibility changes
Remove cache-only workflow edits and preserve the request forwarder's existing error behavior while satisfying the upgraded Python type checker. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ff08f1c commit 78c9468

5 files changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/codegen-check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
- uses: actions/setup-go@v7
3838
with:
3939
go-version: '1.25'
40-
cache-dependency-path: "go/go.sum"
4140

4241
# Rust generator runs `cargo fmt` on the output, so we need a toolchain with rustfmt.
4342
- name: Install Rust toolchain

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
uses: actions/setup-go@v7
5656
with:
5757
go-version: "1.25"
58-
cache-dependency-path: "go/go.sum"
5958

6059
# Setup .NET (for .NET SDK)
6160
- name: Set up .NET

.github/workflows/go-sdk-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
- uses: actions/setup-go@v7
3434
with:
3535
go-version: "1.25"
36-
cache-dependency-path: "go/go.sum"
3736

3837
- name: Run go fmt
3938
if: runner.os == 'Linux'

.github/workflows/update-copilot-dependency.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
- uses: actions/setup-go@v7
3636
with:
3737
go-version: "1.25"
38-
cache-dependency-path: "go/go.sum"
3938

4039
- uses: actions/setup-dotnet@v6
4140
with:

python/copilot/copilot_request_handler.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import base64
2626
from collections.abc import AsyncIterator, Callable
2727
from dataclasses import dataclass, field
28-
from typing import TYPE_CHECKING, Any
28+
from typing import TYPE_CHECKING, Any, cast
2929

3030
from .generated.rpc import (
3131
LlmInferenceHTTPRequestChunkRequest,
@@ -207,9 +207,7 @@ async def open(self) -> None:
207207
self._receive_task = asyncio.create_task(self._receive_loop())
208208

209209
async def _receive_loop(self) -> None:
210-
upstream = self._upstream
211-
if upstream is None:
212-
return
210+
upstream = cast(Any, self._upstream)
213211
try:
214212
async for message in upstream:
215213
await self.send_response_message(message)

0 commit comments

Comments
 (0)