-
Notifications
You must be signed in to change notification settings - Fork 5
feat(TagList)!: TagList now inherits from collections.UserList, instead of typing.List
#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
56487c6
Convert `TagList` to inherit `collections.UserList`, instead of `typi…
schloerke 5484dcf
Update _util.py
schloerke d8ba0c2
Remove many `.data` property calls
schloerke 60803c3
Consolidate if instance check
schloerke c75e6f4
Update _core.py
schloerke 68fe80d
Reverse testing order
schloerke a277323
Rearrange problematic code to a multi line if
schloerke 7e3a342
Drop support for python 3.8
schloerke a007e91
Update CHANGELOG.md
schloerke ab01d5d
Update .github/workflows/pytest.yaml
schloerke e2c8446
Remove dup entry
schloerke b990e1d
Bump to dev version 0.5.3.9002
schloerke 5f4dd41
Merge branch 'taglist_not_list' of https://github.com/posit-dev/py-ht…
schloerke a61037d
While a str is Iterable, it is not a list. Wrap it up
schloerke 4ba6740
Add `__add__` and `__radd__` methods to TagList
schloerke 988acc5
Update CHANGELOG.md
schloerke c92fbe1
Add unit tests on contructor, add/radd, and extend
schloerke 3979037
safe-guard str not _really_ intending to be`Iterable`
schloerke ff0a562
Add more taglist test methods
schloerke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,56 +1,47 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools", | ||
| "wheel" | ||
| ] | ||
| requires = ["setuptools", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "htmltools" | ||
| dynamic = ["version"] | ||
| authors = [{name = "Carson Sievert", email = "[email protected]"}] | ||
| authors = [{ name = "Carson Sievert", email = "[email protected]" }] | ||
| description = "Tools for HTML generation and output." | ||
| readme = "README.md" | ||
| license = {file = "LICENSE"} | ||
| license = { file = "LICENSE" } | ||
| keywords = ["html"] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: Text Processing :: Markup :: HTML" | ||
| ] | ||
| dependencies = [ | ||
| "typing-extensions>=3.10.0.0", | ||
| "packaging>=20.9", | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: Text Processing :: Markup :: HTML", | ||
| ] | ||
| requires-python = ">=3.8" | ||
| dependencies = ["typing-extensions>=3.10.0.0", "packaging>=20.9"] | ||
| requires-python = ">=3.9" | ||
|
|
||
| [project.urls] | ||
| "Bug Tracker" = "https://github.com/rstudio/py-htmltools/issues" | ||
| Source = "https://github.com/rstudio/py-htmltools" | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "pytest>=6.2.4", | ||
| "syrupy>=4.6.0" | ||
| ] | ||
| test = ["pytest>=6.2.4", "syrupy>=4.6.0"] | ||
| dev = [ | ||
| "black>=24.2.0", | ||
| "flake8>=6.0.0", | ||
| "Flake8-pyproject", | ||
| "isort>=5.11.2", | ||
| "pyright>=1.1.348", | ||
| "pre-commit>=2.15.0", | ||
| "wheel", | ||
| "build" | ||
| "black>=24.2.0", | ||
| "flake8>=6.0.0", | ||
| "Flake8-pyproject", | ||
| "isort>=5.11.2", | ||
| "pyright>=1.1.348", | ||
| "pre-commit>=2.15.0", | ||
| "wheel", | ||
| "build", | ||
| ] | ||
|
|
||
| [tool.setuptools] | ||
|
|
@@ -59,7 +50,7 @@ include-package-data = true | |
| zip-safe = false | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "htmltools.__version__"} | ||
| version = { attr = "htmltools.__version__" } | ||
|
|
||
| [tool.setuptools.package-data] | ||
| htmltools = ["py.typed"] | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.