Skip to content

Commit 9dc89da

Browse files
committed
Fix auth examples for pdoc
Change-Id: Ie29595f52793fcf35dc1c043017fd510df5af7e3
1 parent 5a453f0 commit 9dc89da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

KorAPClient/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,23 @@ def auth(self, *args, **kwargs):
132132
Potentially authorized `KorAPConnection`|`RS4` with access token in `.slots['accessToken']`.
133133
134134
Example:
135-
136-
# Create a KorAPConnection object without an existing access token
135+
```
136+
### Create a KorAPConnection object without an existing access token
137137
138138
kcon = KorAPConnection(accessToken=None, verbose=True).auth()
139139
140-
# Perform a query using the authenticated connection
140+
### Perform a query using the authenticated connection
141141
142142
q = kcon.corpusQuery("Ameisenplage", metadataOnly=False)
143143
144-
# Fetch all results
144+
### Fetch all results
145145
146146
q = q.fetchAll()
147147
148-
# Access the collected matches
148+
### Access the collected matches
149149
150150
print(q.slots['collectedMatches'].snippet)
151+
```
151152
152153
"""
153154

0 commit comments

Comments
 (0)