This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
tests/unit/gapic/%name_%version/%sub
tests/integration/goldens Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ nox.options.error_on_missing_interpreters = True
8181def mypy(session):
8282 """Run the type checker."""
8383 session.install(
84- "mypy",
84+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
85+ "mypy<1 .16.0 " ,
8586 " types-requests " ,
8687 " types-protobuf " ,
8788 )
Original file line number Diff line number Diff line change @@ -224,7 +224,11 @@ def test__get_api_endpoint():
224224
225225{% if service .version %}
226226{% for method in service .methods .values () %}{% with method_name = method .name |snake_case %}
227- {% for mode in ["" , "async" ] %}
227+ {# TODO(https://github.com/googleapis/gapic-generator-python/issues/2428): Restore async test `
228+ # once it properly runs as an async test with `@pytest.mark.asyncio`
229+ # Add "async" to the list below `for mode in ["", "async"]`
230+ #}
231+ {% for mode in ["" ] %}
228232{% if mode == "async" %}
229233async def test_{{ method_name }}_api_version_header_async(transport_name="grpc"):
230234 client = {{ service.async_client_name }}(credentials=async_anonymous_credentials(), transport=transport_name)
Original file line number Diff line number Diff line change @@ -589,7 +589,8 @@ def showcase_mypy(
589589 """Perform typecheck analysis on the generated Showcase library."""
590590
591591 session .install (
592- "mypy" ,
592+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
593+ "mypy<1.16.0" ,
593594 "types-setuptools" ,
594595 "types-protobuf" ,
595596 "types-requests" ,
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
Original file line number Diff line number Diff line change 8888def mypy (session ):
8989 """Run the type checker."""
9090 session .install (
91- "mypy" ,
91+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
92+ "mypy<1.16.0" ,
9293 "types-requests" ,
9394 "types-protobuf" ,
9495 )
You can’t perform that action at this time.
0 commit comments