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

Appearance settings

Commit 86359b2

Browse filesBrowse files
build: fix mypy issues (#801)
* build: fix mypy issues * remove mypy constraint --------- Co-authored-by: Daniel Sanche <d.sanche14@gmail.com>
1 parent 971dc03 commit 86359b2
Copy full SHA for 86359b2

File tree

Expand file treeCollapse file tree

3 files changed

+5
-7
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+5
-7
lines changed

‎google/api_core/retry/retry_streaming.py

Copy file name to clipboardExpand all lines: google/api_core/retry/retry_streaming.py
+2-2Lines 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

Copy file name to clipboardExpand all lines: google/api_core/retry/retry_streaming_async.py
+2-2Lines 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

Copy file name to clipboardExpand all lines: noxfile.py
+1-3Lines 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
def mypy(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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.