Skip to content

Conversation

@schloerke
Copy link
Collaborator

The nav panel value is currently given as a str. I believe we should not allow for it to be an HTML() object.

So, keeping the types as str, the final retrieved attribute value should be str (and not HTML()). If there somehow happens to have an HTML value, we will convert it to a str at retrieval time

Related #1692

@schloerke schloerke enabled auto-merge (squash) September 19, 2024 06:18
@schloerke schloerke changed the title chore: More type changes for py-htmltools chore: More minor type changes in prep for py-htmltools updates Sep 19, 2024
@schloerke schloerke merged commit 54b0402 into main Sep 19, 2024
48 checks passed
@schloerke schloerke deleted the htmltools_type_pt_2 branch September 19, 2024 06:23
schloerke added a commit to machow/py-shiny that referenced this pull request Sep 23, 2024
* main:
  chore: Fix `langchain_core` test that used a new `Sequence` type (posit-dev#1697)
  tests(input_slider): add kitchensink tests for input_slider (posit-dev#1691)
  chore: More minor type changes in prep for py-htmltools updates (posit-dev#1693)
  chore: Add types and check action for py-htmltools (posit-dev#1692)
  Anticipate `htmltools.HTML` no longer inheriting from `str` (posit-dev#1690)
  tests(input_select): Add kitchensink tests for input_select and input_selectize (posit-dev#1686)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant