Skip to content

Commit

Permalink
docs: Fix missing async in example
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Nov 26, 2024
1 parent 5f17d71 commit e5eeccb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/endpoints/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ This section contains API documentation for the methods implementing the differe

The methods listed can be called on an instance of the [`HarborAsyncClient`][harborapi.client.HarborAsyncClient] class:


```py
from harborapi import HarborAsyncClient

client = HarborAsyncClient(...)

def main() -> None:
async def main() -> None:
projects = await client.get_projects()
repos = await client.get_repositories()

Expand Down

0 comments on commit e5eeccb

Please sign in to comment.