Skip to content

Commit 4492ade

Browse files
committed
chore(deps-dev): bump pyright v1.1.338 -> v1.1.356
1 parent 952cd2f commit 4492ade

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ dependencies = [
9191
# NOTE: 👆
9292

9393
# lint-check
94-
"pyright == 1.1.338", # pyright must be installed in the runtime environment
94+
"pyright == 1.1.356", # pyright must be installed in the runtime environment
9595
# test
9696
"pytest == 7.*",
9797
"pytest-cov == 4.*",

src/fastapi_proxy_lib/core/_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def return_err_msg_response(
332332
return JSONResponse(
333333
content=err_response_json,
334334
status_code=status_code,
335-
headers=headers, # pyright: ignore[reportGeneralTypeIssues] # 这似乎是starlette的注解错误,因为实际是只用Mapping就可以
335+
headers=headers, # pyright: ignore[reportArgumentType] # 这似乎是starlette的注解错误,因为实际是只用Mapping就可以
336336
background=background,
337337
)
338338

src/fastapi_proxy_lib/core/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ async def send_request_to_target( # pyright: ignore [reportIncompatibleMethodOv
524524
proxy_ws = await stack.enter_async_context(
525525
httpx_ws.aconnect_ws(
526526
# 这个是httpx_ws类型注解的问题,其实是可以使用httpx.URL的
527-
url=target_url, # pyright: ignore [reportGeneralTypeIssues]
527+
url=target_url, # pyright: ignore [reportArgumentType]
528528
client=client,
529529
max_message_size_bytes=max_message_size_bytes,
530530
queue_size=queue_size,

tests/test_core_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ def test_duplicate_router_warning() -> None:
117117
anything_except_router = object()
118118
with pytest.raises(TypeError):
119119
helper.register_router(
120-
anything_except_router, # pyright: ignore[reportGeneralTypeIssues]
120+
anything_except_router, # pyright: ignore[reportCallIssue, reportArgumentType]
121121
router1,
122122
)

tests/test_ws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _subprocess_run_echo_ws_uvicorn_server(queue: "Queue[str]", **kwargs: Any):
5252
}
5353
default_kwargs.update(kwargs)
5454
target_ws_server = UvicornServer(
55-
uvicorn.Config(**default_kwargs), # pyright: ignore[reportGeneralTypeIssues]
55+
uvicorn.Config(**default_kwargs), # pyright: ignore[reportArgumentType]
5656
)
5757

5858
async def run():

0 commit comments

Comments
 (0)