Skip to content

API: make delete() return None consistently; artifacts.rename should return the Artifact #1211

@teng-lin

Description

@teng-lin

From the v0.6.0 architecture gap review (2026-05-29).

Problem

Every delete() returns a hardcoded True — it can never return False because failures raise — so the boolean is a meaningless flag:

  • src/notebooklm/_notebooks.py:511
  • src/notebooklm/_sources.py:624
  • src/notebooklm/_artifacts.py:567
  • src/notebooklm/_notes.py:201

Separately, rename() returns the updated object for notebooks/sources but returns None for artifacts (src/notebooklm/_artifacts.py:587).

Suggested direction

  • delete() -> None everywhere (failures already raise)
  • artifacts.rename() -> Artifact (match notebooks/sources)

Pre-1.0 breaking-change window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions