Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.5.1
->==0.6.0
Release Notes
rstudio/py-htmltools (htmltools)
v0.6.0
Compare Source
Breaking changes
HTML
no longer inherits fromstr
. It now inherits fromcollections.UserString
. This was done to avoid confusion betweenstr
andHTML
objects. (#86)TagList
no longer inherits fromlist
. It now inherits fromcollections.UserList
. This was done to avoid confusion betweenlist
andTagList
objects. (#97)Tag
andTagList
's method.get_html_string()
now both returnstr
instead ofHTML
. (#86)Strings added to
HTML
objects, now returnHTML
objects. E.g.HTML_value + str_value
andstr_value + HTML_value
both returnHTML
objects. To maintain astr
result, callstr()
on yourHTML
objects before adding them to other strings values. (#86)Items added to
TagList
objects, now returnTagList
objects. E.g.TagList_value + arr_value
andarr_value + TagList_value
both return newTagList
objects. To maintain alist
result, calllist()
on yourTagList
objects before combining them to other list objects. (#97)New features
Exported
ReprHtml
protocol class. If an object has a_repr_html_
method, then it is of instanceReprHtml
. (#86)Exported
is_tag_node()
andis_tag_child()
functions that utilizetyping.TypeIs
to narrowTagNode
andTagChild
type variables, respectively. (#86)Exported
consolidate_attrs(*args, **kwargs)
function. This function will combine theTagAttrs
(supplied in*args
) withTagAttrValues
(supplied in**kwargs
) into a singleTagAttrs
object. In addition, it will also return all*args
that are not dictionary as a list of unalteredTagChild
objects. (#86)The
Tag
method.add_style(style=)
added support forHTML
objects in addition tostr
values. (#86)Bug fixes
HTMLTextDocument()
returning extractedHTMLDependency()
s in a non-determistic order. (#95)v0.5.3
Compare Source
v0.5.2
Compare Source
HTMLDependency.copy()
method can now correctly copy folders in depenendencies that both include directories and haveall_files=True
. (#87)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.