Skip to content

Commit

Permalink
make 'public' arg optional
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Feb 29, 2024
1 parent d84b572 commit da34256
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead.

## Unreleased

### Fixed

- Made `public` argument optional for `Beaker.workspace.create()`.

## [v1.26.0](https://github.com/allenai/beaker-py/releases/tag/v1.26.0) - 2024-02-28

### Added
Expand Down
2 changes: 1 addition & 1 deletion beaker/data_model/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WorkspacePage(BasePage[Workspace]):
class WorkspaceSpec(BaseModel):
name: Optional[str] = None
description: Optional[str] = None
public: bool = False
public: Optional[bool] = None
org: Optional[str] = None


Expand Down
2 changes: 1 addition & 1 deletion beaker/services/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get(id: str) -> Workspace:
raise

def create(
self, workspace: str, *, description: Optional[str] = None, public: bool = False
self, workspace: str, *, description: Optional[str] = None, public: Optional[bool] = None
) -> Workspace:
"""
Create a workspace.
Expand Down

0 comments on commit da34256

Please sign in to comment.