bump pyright (#3355)

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
This commit is contained in:
Emídio Neto
2025-03-11 18:11:54 -03:00
committed by GitHub
parent 3708604bb5
commit db52193b3c
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
pylint==3.0.2
httpretty==1.1.4
pyright==v1.1.390
pyright==v1.1.396
sphinx==7.1.2
sphinx-rtd-theme==2.0.0rc4
sphinx-autodoc-typehints==1.25.2

View File

@ -240,7 +240,7 @@ def request_to_events(
id_=f"{function_response.name}_{idx}",
role=content.role,
content=json_format.MessageToDict(
function_response._pb.response # type: ignore[reportUnknownMemberType]
function_response._pb.response
)
if capture_content
else None,
@ -300,7 +300,7 @@ def _extract_tool_calls(
function=ChoiceToolCall.Function(
name=part.function_call.name,
arguments=json_format.MessageToDict(
part.function_call._pb.args # type: ignore[reportUnknownMemberType]
part.function_call._pb.args
)
if capture_content
else None,

View File

@ -196,8 +196,8 @@ pythonVersion = "3.8"
reportPrivateUsage = false # Ignore private attributes added by instrumentation packages.
# Add progressively instrumentation packages here.
include = [
"instrumentation/opentelemetry-instrumentation-threading/**/*.py",
"instrumentation-genai/opentelemetry-instrumentation-vertexai/**/*.py",
"instrumentation/opentelemetry-instrumentation-threading",
"instrumentation-genai/opentelemetry-instrumentation-vertexai",
]
# We should also add type hints to the test suite - It helps on finding bugs.
# We are excluding for now because it's easier, and more important to add to the instrumentation packages.