Skip to content

Commit a243f46

Browse files
committed
Fix docstring
1 parent 5a22e5c commit a243f46

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

cli/polyaxon/_client/organization.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ class OrganizationClient(ClientMixin):
5656
* Artifacts: list_runs_artifacts_lineage
5757
5858
Examples:
59-
# Organization-wide operations
60-
org_client = OrganizationClient(owner="my-org")
61-
org_client.list_runs() # All runs across the organization
62-
63-
# Team-scoped operations (effectively a "Team Client")
64-
team_client = OrganizationClient(owner="my-org/engineering")
65-
team_client.list_runs() # Only runs within the engineering team
66-
team_client.list_model_versions() # Only model versions within the team
59+
```python
60+
>>> # Organization-wide operations
61+
>>> org_client = OrganizationClient(owner="my-org")
62+
>>> org_client.list_runs() # All runs across the organization
63+
>>> # Team-scoped operations (effectively a "Team Client")
64+
>>> team_client = OrganizationClient(owner="my-org/engineering")
65+
>>> team_client.list_runs() # Only runs within the engineering team
66+
>>> team_client.list_model_versions() # Only model versions within the team
67+
```
6768
6869
Properties:
6970
owner: str.

cli/polyaxon/_client/project.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ class ProjectClient(ClientMixin):
5050
only the `owner` parameter is required.
5151
5252
Team Scoping:
53+
5354
Projects can be scoped to a specific team within an organization by providing
5455
the owner in the format "owner/team". When a team is specified, the project
5556
will be created under that team using the team projects API.
5657
5758
Examples:
58-
ProjectClient(owner="my-org", project="my-project") # Organization project
59-
ProjectClient(owner="my-org/engineering", project="my-project") # Team project
59+
60+
```python
61+
>>> ProjectClient(owner="my-org", project="my-project") # Organization project
62+
>>> ProjectClient(owner="my-org/engineering", project="my-project") # Team project
63+
```
6064
6165
Properties:
6266
project: str.

0 commit comments

Comments
 (0)