Skip to content

Commit bba853d

Browse files
committed
Polish documentation
1 parent 0f9b66f commit bba853d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

google/api_core/gapic_v1/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from google.api_core.gapic_v1 import method
2020
from google.api_core.gapic_v1 import routing_header
2121

22+
__all__ = ["client_info", "config", "method", "routing_header"]
23+
2224
if sys.version_info[0] >= 3 and sys.version_info[1] >= 6:
2325
from google.api_core.gapic_v1 import config_async # noqa: F401
24-
__all__ = ["client_info", "config", "config_async", "method", "routing_header"]
25-
else:
26-
__all__ = ["client_info", "config", "method", "routing_header"] # pragma: NO COVER
26+
__all__.append("config_async")

google/api_core/retry_async.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 Google LLC
1+
# Copyright 2020 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323
2424
.. code-block:: python
2525
26-
@retry.AsyncRetry()
26+
@retry_async.AsyncRetry()
2727
async def call_flaky_rpc():
2828
return await client.flaky_rpc()
2929
@@ -35,7 +35,7 @@ async def call_flaky_rpc():
3535
3636
.. code-block:: python
3737
38-
@retry.AsyncRetry(predicate=if_exception_type(exceptions.NotFound))
38+
@retry_async.AsyncRetry(predicate=retry_async.if_exception_type(exceptions.NotFound))
3939
async def check_if_exists():
4040
return await client.does_thing_exist()
4141
@@ -46,7 +46,7 @@ async def check_if_exists():
4646
4747
.. code-block:: python
4848
49-
my_retry = retry.AsyncRetry(deadline=60)
49+
my_retry = retry_async.AsyncRetry(deadline=60)
5050
result = await client.some_method(retry=my_retry)
5151
5252
"""

0 commit comments

Comments
 (0)