Skip to content

Commit 4793f75

Browse files
committed
Lint picking.
1 parent 90f802b commit 4793f75

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gcloud/pubsub/client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
"""Convenience proxies
16+
17+
Define wrappers for ``api`` functions, :class:`gcloud.pubsub.topic.Topic`, and
18+
:class:`gcloud.pubsub.subscription.Subscription`, passing the memoized
19+
connection / project as needed.
20+
"""
21+
1522
from gcloud._helpers import get_default_project
1623
from gcloud._helpers import _ClientProxy
1724
from gcloud.pubsub._implicit_environ import _require_connection
@@ -88,6 +95,10 @@ class _Topic(_ClientProxy):
8895
"""Proxy for :class:`gcloud.pubsub.topic.Topic`.
8996
"""
9097
def subscription(self, name, ack_deadline=None, push_endpoint=None):
98+
""" Proxy through to :class:`gcloud.pubsub.subscription.Subscription`.
99+
100+
:rtype: :class:`_Subscription`
101+
"""
91102
subscription = Subscription(
92103
name,
93104
self._wrapped,

0 commit comments

Comments
 (0)