Skip to content

PyScript Stub Generation Errata #814

@gauravmm

Description

@gauravmm

I'm working with the PyScript type stubs right now and am logging the errata I spot:

  1. _timer_state.start and _timer_state.change: parameter duration should be str | int
  2. Almost all static methods that accept entity_id: entity_id should be str | list[str] | tuple[str]
  3. _input_number_state should be ConvertibleToFloat. I don't know how best to implement this.
  4. remote.send_command, _remote_state.send_command : parameters delay_secs, hold_secs should be float
  5. task.wait_until: the default value of webhook_methods: ["POST", "PUT"]
  6. event_trigger: parameter str_expr should be str | None
  7. color_name parameters should have a type defined once and re-used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions