Skip to content

experimental

This directory serves as a stub for the experimental components of the Talon Voice API, specifically mimicking the talon.experimental package during testing.

When running unit tests or static analysis outside of the active Talon Voice application runner (such as in a continuous integration pipeline or a local command-line environment), the native talon APIs are not accessible. These stub files ensure that scripts and test suites can import these experimental interfaces without raising a ModuleNotFoundError or causing execution crashes.

Experimental UI Stubs

  • textarea.py: Stub implementation for Talon's experimental text area UI component.

How It Works

The textarea.py file defines mock placeholders for classes and objects commonly used when building rich text user interfaces in Talon:

  • TextArea
  • Span
  • DarkThemeLabels
  • LightThemeLabels

By defining these objects as None, any community script or test case that imports from talon.experimental.textarea can successfully resolve the import path. This isolates the test environment from Talon's internal UI rendering engine while still permitting syntax validation and testing of independent logical units.