Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86359b2

Browse files
build: fix mypy issues (#801)
* build: fix mypy issues* remove mypy constraint---------Co-authored-by: Daniel Sanche <d.sanche14@gmail.com>
1 parent971dc03 commit86359b2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

‎google/api_core/retry/retry_streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def retry_target_stream(
5959
[List[Exception],RetryFailureReason,Optional[float]],
6060
Tuple[Exception,Optional[Exception]],
6161
]=build_retry_error,
62-
init_args:_P.args= (),
63-
init_kwargs:_P.kwargs= {},
62+
init_args:tuple= (),
63+
init_kwargs:dict= {},
6464
**kwargs,
6565
)->Generator[_Y,Any,None]:
6666
"""Create a generator wrapper that retries the wrapped stream if it fails.

‎google/api_core/retry/retry_streaming_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ async def retry_target_stream(
6262
[list[Exception],RetryFailureReason,float|None],
6363
tuple[Exception,Exception|None],
6464
]=build_retry_error,
65-
init_args:_P.args= (),
66-
init_kwargs:_P.kwargs= {},
65+
init_args:tuple= (),
66+
init_kwargs:dict= {},
6767
**kwargs,
6868
)->AsyncGenerator[_Y,None]:
6969
"""Create a generator wrapper that retries the wrapped stream if it fails.

‎noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ def pytype(session):
274274
@nox.session(python=DEFAULT_PYTHON_VERSION)
275275
defmypy(session):
276276
"""Run type-checking."""
277-
# TODO(https://github.com/googleapis/python-api-core/issues/799):
278-
# Remove mypy constraint. We should use the latest version of mypy.
279-
session.install(".[grpc,async_rest]","mypy<1.15.0")
277+
session.install(".[grpc,async_rest]","mypy")
280278
session.install(
281279
"types-setuptools",
282280
"types-requests",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp