tmuxp icon indicating copy to clipboard operation
tmuxp copied to clipboard

types(workspace-imports) Example typings via `NotRequried`

Open tony opened this issue 5 months ago • 1 comments

Summary by Sourcery

Add example typings for workspace imports by introducing detailed TypedDict schemas and updating importers to reference the new workspace configuration types

Enhancements:

  • Define comprehensive TypedDict schemas for shell commands, panes, windows, and workspace configuration using NotRequired for optional fields
  • Introduce union types for shell command and pane values to capture both simple and detailed configurations
  • Annotate importer functions to reference the WorkspaceConfig type under TYPE_CHECKING and update docstrings to indicate the returned dict conforms to WorkspaceConfig

tony avatar Jun 07 '25 10:06 tony