Skip to content

Commit bd78337

Browse files
committed
Fix syntax errors in docstring code blocks
- Fix incorrect import statements: change 'import urllib3 import make_headers' to 'from urllib3.util import make_headers' - Remove extra blank lines in docstrings for proper Sphinx rendering
1 parent 5b1781a commit bd78337

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pinecone/pinecone.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__(
167167
.. code-block:: python
168168
169169
from pinecone import Pinecone
170-
import urllib3 import make_headers
170+
from urllib3.util import make_headers
171171
172172
pc = Pinecone(
173173
api_key='YOUR_API_KEY',
@@ -177,8 +177,6 @@ def __init__(
177177
178178
pc.list_indexes()
179179
180-
181-
182180
**Using proxies with self-signed certificates**
183181
184182
By default the Pinecone Python client will perform SSL certificate verification
@@ -189,7 +187,7 @@ def __init__(
189187
.. code-block:: python
190188
191189
from pinecone import Pinecone
192-
import urllib3 import make_headers
190+
from urllib3.util import make_headers
193191
194192
pc = Pinecone(
195193
api_key='YOUR_API_KEY',
@@ -200,8 +198,6 @@ def __init__(
200198
201199
pc.list_indexes()
202200
203-
204-
205201
**Disabling SSL verification**
206202
207203
If you would like to disable SSL verification, you can pass the ``ssl_verify``
@@ -210,7 +206,7 @@ def __init__(
210206
.. code-block:: python
211207
212208
from pinecone import Pinecone
213-
import urllib3 import make_headers
209+
from urllib3.util import make_headers
214210
215211
pc = Pinecone(
216212
api_key='YOUR_API_KEY',
@@ -222,7 +218,6 @@ def __init__(
222218
223219
pc.list_indexes()
224220
225-
226221
"""
227222
for deprecated_kwarg in {"config", "openapi_config", "index_api"}:
228223
if deprecated_kwarg in kwargs:

0 commit comments

Comments
 (0)