Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gradient-labs"
version = "0.11.7"
version = "0.11.8"
description = "Python bindings for the Gradient Labs API"
readme = "README.md"
requires-python = ">=3.9,<4.0"
Expand Down
5 changes: 0 additions & 5 deletions src/gradient_labs/_note_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class CreateNoteParams:
# Title is the note's title.
title: str

# AuthorID optionally identifies the (current) author of the note.
author_id: Optional[str] = None

# Body is the main contents of a note. This is mutually exclusive with webpage_url.
body: Optional[str] = None

Expand All @@ -41,8 +38,6 @@ def create_note(*, client: HttpClient, params: CreateNoteParams) -> Note:
"id": params.id,
"title": params.title,
}
if params.author_id is not None:
body["author_id"] = params.author_id
if params.body is not None:
body["body"] = params.body
if params.webpage_url is not None:
Expand Down
5 changes: 0 additions & 5 deletions src/gradient_labs/_note_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ class UpdateNoteParams:
# Title is the note's title.
title: str

# AuthorID optionally identifies the (current) author of the note.
author_id: Optional[str] = None

# Body is the main contents of a note. This is mutually exclusive with webpage_url.
body: Optional[str] = None

Expand All @@ -37,8 +34,6 @@ def update_note(*, client: HttpClient, note_id: str, params: UpdateNoteParams) -
body = {
"title": params.title,
}
if params.author_id is not None:
body["author_id"] = params.author_id
if params.body is not None:
body["body"] = params.body
if params.webpage_url is not None:
Expand Down