Skip to content

Commit 0cbc72d

Browse files
authored
Merge pull request #2841 from mckoss/koss-explicit-document
Update language docs to use explicit path to Document.
2 parents 875fb6c + 7a5adb8 commit 0cbc72d

File tree

1 file changed

+9
-6
lines changed
  • packages/google-cloud-language/google/cloud/language

1 file changed

+9
-6
lines changed

packages/google-cloud-language/google/cloud/language/client.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ def document_from_text(self, content, **kwargs):
4545
4646
:type kwargs: dict
4747
:param kwargs: Remaining keyword arguments to be passed along to the
48-
:class:`.Document` constructor.
48+
:class:`~google.cloud.language.document.Document`
49+
constructor.
4950
50-
:rtype: :class:`.Document`
51+
:rtype: :class:`~google.cloud.language.document.Document`
5152
:returns: A plain-text document bound to this client.
5253
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
5354
keyword argument.
@@ -65,9 +66,10 @@ def document_from_html(self, content, **kwargs):
6566
6667
:type kwargs: dict
6768
:param kwargs: Remaining keyword arguments to be passed along to the
68-
:class:`.Document` constructor.
69+
:class:`~google.cloud.language.document.Document`
70+
constructor.
6971
70-
:rtype: :class:`.Document`
72+
:rtype: :class:`~google.cloud.language.document.Document`
7173
:returns: An HTML document bound to this client.
7274
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
7375
keyword argument.
@@ -93,9 +95,10 @@ def document_from_url(self, gcs_url,
9395
9496
:type kwargs: dict
9597
:param kwargs: Remaining keyword arguments to be passed along to the
96-
:class:`.Document` constructor.
98+
:class:`~google.cloud.language.document.Document`
99+
constructor.
97100
98-
:rtype: :class:`.Document`
101+
:rtype: :class:`~google.cloud.language.document.Document`
99102
:returns: A document bound to this client.
100103
"""
101104
return Document(self, gcs_url=gcs_url, doc_type=doc_type, **kwargs)

0 commit comments

Comments
 (0)