xcomponent 0.5.0__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/tests.yml +6 -1
  2. {xcomponent-0.5.0 → xcomponent-0.5.2}/CHANGELOG.md +12 -2
  3. {xcomponent-0.5.0 → xcomponent-0.5.2}/Cargo.lock +1 -1
  4. {xcomponent-0.5.0 → xcomponent-0.5.2}/Cargo.toml +1 -1
  5. {xcomponent-0.5.0 → xcomponent-0.5.2}/Justfile +6 -1
  6. {xcomponent-0.5.0 → xcomponent-0.5.2}/PKG-INFO +1 -1
  7. {xcomponent-0.5.0 → xcomponent-0.5.2}/pyproject.toml +7 -3
  8. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/python/xcomponent/service/catalog.py +7 -4
  9. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/markup/parser.rs +8 -1
  10. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/markup/tokens.rs +24 -12
  11. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_attributes.py +78 -0
  12. xcomponent-0.5.2/tests/unittests/test_render_script.py +19 -0
  13. {xcomponent-0.5.0 → xcomponent-0.5.2}/uv.lock +70 -2
  14. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/build-sdist.yml +0 -0
  15. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/build-wheels.yml +0 -0
  16. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/publish-doc.yml +0 -0
  17. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/publish-pypi.yml +0 -0
  18. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/release.yml +0 -0
  19. {xcomponent-0.5.0 → xcomponent-0.5.2}/.github/workflows/tests-artifacts.yml +0 -0
  20. {xcomponent-0.5.0 → xcomponent-0.5.2}/.gitignore +0 -0
  21. {xcomponent-0.5.0 → xcomponent-0.5.2}/.python-version +0 -0
  22. {xcomponent-0.5.0 → xcomponent-0.5.2}/LICENSE +0 -0
  23. {xcomponent-0.5.0 → xcomponent-0.5.2}/README.md +0 -0
  24. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/Makefile +0 -0
  25. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/source/conf.py +0 -0
  26. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/source/develop/.gitkeep +0 -0
  27. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/source/index.md +0 -0
  28. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/source/user/changelog.md +0 -0
  29. {xcomponent-0.5.0 → xcomponent-0.5.2}/docs/source/user/getting_started.md +0 -0
  30. {xcomponent-0.5.0 → xcomponent-0.5.2}/scripts/get_version.py +0 -0
  31. {xcomponent-0.5.0 → xcomponent-0.5.2}/scripts/write_changelog.py +0 -0
  32. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/python/xcomponent/__init__.py +0 -0
  33. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/python/xcomponent/py.typed +0 -0
  34. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/python/xcomponent/service/__init__.py +0 -0
  35. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/python/xcomponent/xcore.pyi +0 -0
  36. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/catalog/catalog.rs +0 -0
  37. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/catalog/mod.rs +0 -0
  38. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/context.rs +0 -0
  39. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/ast/eval.rs +0 -0
  40. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/ast/mod.rs +0 -0
  41. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/ast/model.rs +0 -0
  42. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/ast/parse.rs +0 -0
  43. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/grammar.pest +0 -0
  44. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/mod.rs +0 -0
  45. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/parser.rs +0 -0
  46. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/expression/tokens.rs +0 -0
  47. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/lib.rs +0 -0
  48. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/markup/grammar.pest +0 -0
  49. {xcomponent-0.5.0 → xcomponent-0.5.2}/src/rust/markup/mod.rs +0 -0
  50. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/__init__.py +0 -0
  51. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/__init__.py +0 -0
  52. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_binary_eq.py +0 -0
  53. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_binary_op.py +0 -0
  54. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_binary_op_bool.py +0 -0
  55. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_default_values.py +0 -0
  56. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_field_access.py +0 -0
  57. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_for_expr.py +0 -0
  58. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_func.py +0 -0
  59. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_if_expr.py +0 -0
  60. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_nested.py +0 -0
  61. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_render_comment.py +0 -0
  62. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_types.py +0 -0
  63. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/expression/test_unary.py +0 -0
  64. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_core.py +0 -0
  65. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_named_component.py +0 -0
  66. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_context.py +0 -0
  67. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_globals.py +0 -0
  68. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_globals_obj.py +0 -0
  69. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_globals_obj2.py +0 -0
  70. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_nested_dict.py +0 -0
  71. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_nested_node.py +0 -0
  72. {xcomponent-0.5.0 → xcomponent-0.5.2}/tests/unittests/test_render_node.py +0 -0
@@ -25,6 +25,7 @@ jobs:
25
25
  runs-on: ubuntu-latest
26
26
  steps:
27
27
  - uses: actions/checkout@v4
28
+ - uses: chartboost/ruff-action@v1
28
29
  - uses: actions/setup-python@v5
29
30
  with:
30
31
  python-version: ${{ env.PYTHON_VERSION }}
@@ -39,6 +40,10 @@ jobs:
39
40
  - name: Build tarball
40
41
  run: uv build
41
42
 
42
- - name: "Test sdist"
43
+ - name: "Check types"
44
+ run: |
45
+ uv run mypy src/python
46
+
47
+ - name: "Run unit tests"
43
48
  run: |
44
49
  uv run pytest -sxv
@@ -1,10 +1,20 @@
1
+ ## 0.5.2 - 2025-06-03
2
+
3
+ * Hotfix component havin attributes'name containing python reserved keyword.
4
+
5
+ ## 0.5.1 - 2025-06-02
6
+
7
+ * Preserve empty string in markup such as stript tag to render.
8
+ * Fix rendering of json in attributes such as hx-vals.
9
+ * Check mypy in the CI.
10
+
1
11
  ## 0.5.0 - 2025-05-31
2
12
 
3
13
  * Improve html attributes supports.
4
14
  * hyphen can be used in markup language and is bound
5
15
  to underscore variable in python.
6
- * attribute for is bound to for_
7
- * attribute class is bount to class_
16
+ * attribute for is bound to for_.
17
+ * attribute class is bount to class_.
8
18
 
9
19
  ## 0.4.1 - 2025-05-30
10
20
 
@@ -595,7 +595,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
595
595
 
596
596
  [[package]]
597
597
  name = "xcore"
598
- version = "0.5.0"
598
+ version = "0.5.2"
599
599
  dependencies = [
600
600
  "env_logger",
601
601
  "html-escape",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "xcore"
3
- version = "0.5.0"
3
+ version = "0.5.2"
4
4
  authors = ["Guillaume Gauvrit <guillaume@gauvr.it>"]
5
5
  edition = "2021"
6
6
  description = "JSX-like for python using maturin/pyo3 and pest."
@@ -18,8 +18,13 @@ cleandoc:
18
18
  cd docs && uv run make clean
19
19
  rm -rf docs/source/develop
20
20
 
21
- test: unittest
21
+ test: lint typecheck unittest
22
22
 
23
+ lint:
24
+ uv run ruff check .
25
+
26
+ typecheck:
27
+ uv run mypy src/python
23
28
 
24
29
  unittest testsuite=default_testsuite: develop
25
30
  uv run pytest -sxv {{testsuite}}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcomponent
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xcomponent"
3
- version = "0.5.0"
3
+ version = "0.5.2"
4
4
  description = "A component base template engige - inspired by JSX"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Guillaume Gauvrit", email = "guillaume@gauvr.it" }]
@@ -39,7 +39,11 @@ docs = [
39
39
  ]
40
40
 
41
41
  [dependency-groups]
42
- dev = ["pytest >=8.3.5,<9"]
42
+ dev = [
43
+ "bs4>=0.0.2",
44
+ "mypy >=1.16.0,<2",
45
+ "pytest >=8.3.5,<9",
46
+ ]
43
47
  docs = [
44
48
  "furo >=2024.5.6",
45
49
  "linkify-it-py >=2.0.3,<3",
@@ -49,7 +53,7 @@ docs = [
49
53
  ]
50
54
 
51
55
  [tool.pyright]
52
- include = ["src/python", "test"]
56
+ include = ["src/python", "tests"]
53
57
  typeCheckingMode = "strict"
54
58
  reportMissingTypeStubs = false
55
59
  venvPath = ".venv"
@@ -91,10 +91,13 @@ class Catalog:
91
91
  """
92
92
  Decorator to register a template with its schema parameters.
93
93
 
94
- :param name: optional name for the component, by default, it is the function name.
94
+ :param name: optional name for the component, by default,
95
+ it is the function name.
95
96
  :return: A function that render the component without global variable supports.
96
97
  """
97
- component_name = name.__name__ if isinstance(name, Callable) else name
98
+ component_name: str = (
99
+ name.__name__ if isinstance(name, Callable) else name # type: ignore
100
+ )
98
101
 
99
102
  def decorator(fn: Component):
100
103
  @wraps(fn)
@@ -118,7 +121,7 @@ class Catalog:
118
121
  self.register_component(component_name or fn.__name__, fn)
119
122
  return render
120
123
 
121
- if isinstance(name, Callable):
124
+ if callable(name):
122
125
  return decorator(name)
123
126
  else:
124
127
  return decorator
@@ -139,7 +142,7 @@ class Catalog:
139
142
  :param name: name of the function in case it is the parametrized function
140
143
  :return: the decorated method.
141
144
  """
142
- if isinstance(name, Callable):
145
+ if callable(name):
143
146
  self._catalog.add_function(name.__name__, name)
144
147
  return name
145
148
 
@@ -32,7 +32,14 @@ fn parse_node(pair: Pair<Rule>) -> Option<XNode> {
32
32
  let open_tag = inner.next().unwrap();
33
33
  let (name, attrs) = parse_open_tag(open_tag);
34
34
 
35
- let children = parse_nodes(inner);
35
+ let mut children = parse_nodes(inner);
36
+ // we make the distinctions between self closing element
37
+ // and normal element from the user input, we must ensure that
38
+ // the normal element are still rendered as normal element since
39
+ // it is a user choice.
40
+ if children.len() == 0 {
41
+ children.push(XNode::Text(XText::new("".to_string())));
42
+ }
36
43
 
37
44
  Some(XNode::Element(XElement::new(name, attrs, children)))
38
45
  }
@@ -107,6 +107,23 @@ impl XElement {
107
107
  }
108
108
  }
109
109
 
110
+ #[inline]
111
+ fn render_attr<'py>(
112
+ py: Python<'py>,
113
+ catalog: &XCatalog,
114
+ node: &XNode,
115
+ name: &str,
116
+ context: &mut RenderContext,
117
+ ) -> PyResult<String> {
118
+ let value = catalog.render_node(py, &node, context)?;
119
+ let attr = if value.contains('"') {
120
+ format!(" {}='{}'", name, value.replace('\'', "\\'"))
121
+ } else {
122
+ format!(" {}=\"{}\"", name, value)
123
+ };
124
+ Ok(attr)
125
+ }
126
+
110
127
  impl ToHtml for XElement {
111
128
  fn to_html<'py>(
112
129
  &self,
@@ -127,10 +144,11 @@ impl ToHtml for XElement {
127
144
  .copy()?;
128
145
 
129
146
  for (name, attrnode) in self.attrs() {
130
- let name = name
131
- .replace('-', "_")
132
- .replace("class", "class_")
133
- .replace("for", "for_");
147
+ let name = match name.as_str() {
148
+ "class" => "class_".to_string(),
149
+ "for" => "for_".to_string(),
150
+ _ => name.replace('-', "_"),
151
+ };
134
152
  if let XNode::Expression(ref expression) = attrnode {
135
153
  let node_attr_v =
136
154
  eval_expression(py, expression.expression(), &catalog, context)?;
@@ -174,16 +192,10 @@ impl ToHtml for XElement {
174
192
  Literal::None(()) => "".to_string(),
175
193
  Literal::Bool(false) => "".to_string(),
176
194
  Literal::Bool(true) => format!(" {}", name),
177
- _ => {
178
- let value = catalog.render_node(py, &node, context)?;
179
- format!(" {}=\"{}\"", name, value)
180
- }
195
+ _ => render_attr(py, catalog, &node, name.as_str(), context)?,
181
196
  }
182
197
  }
183
- _ => {
184
- let value = catalog.render_node(py, &node, context)?;
185
- format!(" {}=\"{}\"", name, value)
186
- }
198
+ _ => render_attr(py, catalog, &node, name.as_str(), context)?,
187
199
  };
188
200
  result.push_str(format!("{}", attr).as_str());
189
201
  }
@@ -2,6 +2,7 @@ from typing import Literal
2
2
  from xcomponent import Catalog, XNode
3
3
 
4
4
  import pytest
5
+ import bs4
5
6
 
6
7
  catalog = Catalog()
7
8
 
@@ -39,6 +40,41 @@ def Label(
39
40
  """
40
41
 
41
42
 
43
+ @catalog.component
44
+ def Button(hx_vals: str) -> str:
45
+ return """
46
+ <button hx-vals={hx_vals}>Submit</button>
47
+ """
48
+
49
+
50
+ @catalog.component
51
+ def Radio(
52
+ globals: dict[str, str],
53
+ label: str,
54
+ name: str,
55
+ value: str,
56
+ id: str | None = None,
57
+ checked: bool = False,
58
+ disabled: bool = False,
59
+ onclick: str | None = None,
60
+ div_class: str | None = None,
61
+ class_: str | None = None,
62
+ label_class: str | None = None,
63
+ ) -> str:
64
+ return """
65
+ <div class={div_class or globals.RADIO_DIV_CLASS}>
66
+ <input type="radio" name={name} id={id} value={value}
67
+ class={class_ or globals.RADIO_INPUT_CLASS}
68
+ onclick={onclick}
69
+ checked={checked}
70
+ disabled={disabled} />
71
+ <Label for={id} class={label_class or globals.RADIO_LABEL_CLASS}>
72
+ {label}
73
+ </Label>
74
+ </div>
75
+ """
76
+
77
+
42
78
  @pytest.mark.parametrize(
43
79
  "component,expected",
44
80
  [
@@ -78,3 +114,45 @@ def Label(
78
114
  )
79
115
  def test_render_form(component: str, expected: str):
80
116
  assert component == expected
117
+
118
+
119
+ @pytest.mark.parametrize(
120
+ "component,expected",
121
+ [
122
+ pytest.param(
123
+ catalog.render("""<Button hx-vals='{"a":"A"}' />"""),
124
+ """<button hx-vals='{"a":"A"}'>Submit</button>""",
125
+ id="forward class and for",
126
+ )
127
+ ],
128
+ )
129
+ def test_render_double_quote_in_quote(component: str, expected: str):
130
+ assert component == expected
131
+
132
+
133
+ @pytest.mark.parametrize(
134
+ "component,expected",
135
+ [
136
+ pytest.param(
137
+ catalog.render(
138
+ """
139
+ <Radio name="n" value="v"
140
+ label="lbl" class="radio" label-class="lbl" div-class="d" />
141
+ """,
142
+ globals={
143
+ "RADIO_DIV_CLASS": "RADIO_DIV_CLASS",
144
+ "RADIO_INPUT_CLASS": "RADIO_INPUT_CLASS",
145
+ "RADIO_LABEL_CLASS": "RADIO_LABEL_CLASS",
146
+ },
147
+ ),
148
+ '<div class="d"><input type="radio" name="n" class="radio" value="v"/>'
149
+ '<label class="lbl">lbl</label></div>',
150
+ id="dont alter suffixed by class",
151
+ )
152
+ ],
153
+ )
154
+ def test_render_suffixed_class(component: str, expected: str):
155
+ soup = bs4.BeautifulSoup(component, "html.parser")
156
+ expected_soup = bs4.BeautifulSoup(expected, "html.parser")
157
+
158
+ assert next(soup.children) == next(expected_soup.children)
@@ -0,0 +1,19 @@
1
+ from xcomponent import Catalog
2
+
3
+ catalog = Catalog()
4
+
5
+
6
+ @catalog.component
7
+ def Head():
8
+ return """
9
+ <head>
10
+ <script src="/static/htmx.2.0.1.min.js"></script>
11
+ </head>
12
+ """
13
+
14
+
15
+ def test_render_script():
16
+ assert (
17
+ catalog.render("<Head />")
18
+ == '<head><script src="/static/htmx.2.0.1.min.js"></script></head>'
19
+ )
@@ -42,6 +42,18 @@ wheels = [
42
42
  { url = "https://files.pythonhosted.org/packages/50/cd/30110dc0ffcf3b131156077b90e9f60ed75711223f306da4db08eff8403b/beautifulsoup4-4.13.4-py3-none-any.whl", hash = "sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b", size = 187285, upload-time = "2025-04-15T17:05:12.221Z" },
43
43
  ]
44
44
 
45
+ [[package]]
46
+ name = "bs4"
47
+ version = "0.0.2"
48
+ source = { registry = "https://pypi.org/simple" }
49
+ dependencies = [
50
+ { name = "beautifulsoup4" },
51
+ ]
52
+ sdist = { url = "https://files.pythonhosted.org/packages/c9/aa/4acaf814ff901145da37332e05bb510452ebed97bc9602695059dd46ef39/bs4-0.0.2.tar.gz", hash = "sha256:a48685c58f50fe127722417bae83fe6badf500d54b55f7e39ffe43b798653925", size = 698, upload-time = "2024-01-17T18:15:47.371Z" }
53
+ wheels = [
54
+ { url = "https://files.pythonhosted.org/packages/51/bb/bf7aab772a159614954d84aa832c129624ba6c32faa559dfb200a534e50b/bs4-0.0.2-py2.py3-none-any.whl", hash = "sha256:abf8742c0805ef7f662dce4b51cca104cffe52b835238afc169142ab9b3fbccc", size = 1189, upload-time = "2024-01-17T18:15:48.613Z" },
55
+ ]
56
+
45
57
  [[package]]
46
58
  name = "certifi"
47
59
  version = "2025.4.26"
@@ -264,6 +276,47 @@ wheels = [
264
276
  { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },
265
277
  ]
266
278
 
279
+ [[package]]
280
+ name = "mypy"
281
+ version = "1.16.0"
282
+ source = { registry = "https://pypi.org/simple" }
283
+ dependencies = [
284
+ { name = "mypy-extensions" },
285
+ { name = "pathspec" },
286
+ { name = "typing-extensions" },
287
+ ]
288
+ sdist = { url = "https://files.pythonhosted.org/packages/d4/38/13c2f1abae94d5ea0354e146b95a1be9b2137a0d506728e0da037c4276f6/mypy-1.16.0.tar.gz", hash = "sha256:84b94283f817e2aa6350a14b4a8fb2a35a53c286f97c9d30f53b63620e7af8ab", size = 3323139, upload-time = "2025-05-29T13:46:12.532Z" }
289
+ wheels = [
290
+ { url = "https://files.pythonhosted.org/packages/24/c4/ff2f79db7075c274fe85b5fff8797d29c6b61b8854c39e3b7feb556aa377/mypy-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9f826aaa7ff8443bac6a494cf743f591488ea940dd360e7dd330e30dd772a5ab", size = 10884498, upload-time = "2025-05-29T13:18:54.066Z" },
291
+ { url = "https://files.pythonhosted.org/packages/02/07/12198e83006235f10f6a7808917376b5d6240a2fd5dce740fe5d2ebf3247/mypy-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:82d056e6faa508501af333a6af192c700b33e15865bda49611e3d7d8358ebea2", size = 10011755, upload-time = "2025-05-29T13:34:00.851Z" },
292
+ { url = "https://files.pythonhosted.org/packages/f1/9b/5fd5801a72b5d6fb6ec0105ea1d0e01ab2d4971893076e558d4b6d6b5f80/mypy-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:089bedc02307c2548eb51f426e085546db1fa7dd87fbb7c9fa561575cf6eb1ff", size = 11800138, upload-time = "2025-05-29T13:32:55.082Z" },
293
+ { url = "https://files.pythonhosted.org/packages/2e/81/a117441ea5dfc3746431e51d78a4aca569c677aa225bca2cc05a7c239b61/mypy-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a2322896003ba66bbd1318c10d3afdfe24e78ef12ea10e2acd985e9d684a666", size = 12533156, upload-time = "2025-05-29T13:19:12.963Z" },
294
+ { url = "https://files.pythonhosted.org/packages/3f/38/88ec57c6c86014d3f06251e00f397b5a7daa6888884d0abf187e4f5f587f/mypy-1.16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:021a68568082c5b36e977d54e8f1de978baf401a33884ffcea09bd8e88a98f4c", size = 12742426, upload-time = "2025-05-29T13:20:22.72Z" },
295
+ { url = "https://files.pythonhosted.org/packages/bd/53/7e9d528433d56e6f6f77ccf24af6ce570986c2d98a5839e4c2009ef47283/mypy-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:54066fed302d83bf5128632d05b4ec68412e1f03ef2c300434057d66866cea4b", size = 9478319, upload-time = "2025-05-29T13:21:17.582Z" },
296
+ { url = "https://files.pythonhosted.org/packages/70/cf/158e5055e60ca2be23aec54a3010f89dcffd788732634b344fc9cb1e85a0/mypy-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c5436d11e89a3ad16ce8afe752f0f373ae9620841c50883dc96f8b8805620b13", size = 11062927, upload-time = "2025-05-29T13:35:52.328Z" },
297
+ { url = "https://files.pythonhosted.org/packages/94/34/cfff7a56be1609f5d10ef386342ce3494158e4d506516890142007e6472c/mypy-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f2622af30bf01d8fc36466231bdd203d120d7a599a6d88fb22bdcb9dbff84090", size = 10083082, upload-time = "2025-05-29T13:35:33.378Z" },
298
+ { url = "https://files.pythonhosted.org/packages/b3/7f/7242062ec6288c33d8ad89574df87c3903d394870e5e6ba1699317a65075/mypy-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d045d33c284e10a038f5e29faca055b90eee87da3fc63b8889085744ebabb5a1", size = 11828306, upload-time = "2025-05-29T13:21:02.164Z" },
299
+ { url = "https://files.pythonhosted.org/packages/6f/5f/b392f7b4f659f5b619ce5994c5c43caab3d80df2296ae54fa888b3d17f5a/mypy-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4968f14f44c62e2ec4a038c8797a87315be8df7740dc3ee8d3bfe1c6bf5dba8", size = 12702764, upload-time = "2025-05-29T13:20:42.826Z" },
300
+ { url = "https://files.pythonhosted.org/packages/9b/c0/7646ef3a00fa39ac9bc0938626d9ff29d19d733011be929cfea59d82d136/mypy-1.16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:eb14a4a871bb8efb1e4a50360d4e3c8d6c601e7a31028a2c79f9bb659b63d730", size = 12896233, upload-time = "2025-05-29T13:18:37.446Z" },
301
+ { url = "https://files.pythonhosted.org/packages/6d/38/52f4b808b3fef7f0ef840ee8ff6ce5b5d77381e65425758d515cdd4f5bb5/mypy-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd4e1ebe126152a7bbaa4daedd781c90c8f9643c79b9748caa270ad542f12bec", size = 9565547, upload-time = "2025-05-29T13:20:02.836Z" },
302
+ { url = "https://files.pythonhosted.org/packages/97/9c/ca03bdbefbaa03b264b9318a98950a9c683e06472226b55472f96ebbc53d/mypy-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a9e056237c89f1587a3be1a3a70a06a698d25e2479b9a2f57325ddaaffc3567b", size = 11059753, upload-time = "2025-05-29T13:18:18.167Z" },
303
+ { url = "https://files.pythonhosted.org/packages/36/92/79a969b8302cfe316027c88f7dc6fee70129490a370b3f6eb11d777749d0/mypy-1.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0b07e107affb9ee6ce1f342c07f51552d126c32cd62955f59a7db94a51ad12c0", size = 10073338, upload-time = "2025-05-29T13:19:48.079Z" },
304
+ { url = "https://files.pythonhosted.org/packages/14/9b/a943f09319167da0552d5cd722104096a9c99270719b1afeea60d11610aa/mypy-1.16.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c6fb60cbd85dc65d4d63d37cb5c86f4e3a301ec605f606ae3a9173e5cf34997b", size = 11827764, upload-time = "2025-05-29T13:46:04.47Z" },
305
+ { url = "https://files.pythonhosted.org/packages/ec/64/ff75e71c65a0cb6ee737287c7913ea155845a556c64144c65b811afdb9c7/mypy-1.16.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7e32297a437cc915599e0578fa6bc68ae6a8dc059c9e009c628e1c47f91495d", size = 12701356, upload-time = "2025-05-29T13:35:13.553Z" },
306
+ { url = "https://files.pythonhosted.org/packages/0a/ad/0e93c18987a1182c350f7a5fab70550852f9fabe30ecb63bfbe51b602074/mypy-1.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:afe420c9380ccec31e744e8baff0d406c846683681025db3531b32db56962d52", size = 12900745, upload-time = "2025-05-29T13:17:24.409Z" },
307
+ { url = "https://files.pythonhosted.org/packages/28/5d/036c278d7a013e97e33f08c047fe5583ab4f1fc47c9a49f985f1cdd2a2d7/mypy-1.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:55f9076c6ce55dd3f8cd0c6fff26a008ca8e5131b89d5ba6d86bd3f47e736eeb", size = 9572200, upload-time = "2025-05-29T13:33:44.92Z" },
308
+ { url = "https://files.pythonhosted.org/packages/99/a3/6ed10530dec8e0fdc890d81361260c9ef1f5e5c217ad8c9b21ecb2b8366b/mypy-1.16.0-py3-none-any.whl", hash = "sha256:29e1499864a3888bca5c1542f2d7232c6e586295183320caa95758fc84034031", size = 2265773, upload-time = "2025-05-29T13:35:18.762Z" },
309
+ ]
310
+
311
+ [[package]]
312
+ name = "mypy-extensions"
313
+ version = "1.1.0"
314
+ source = { registry = "https://pypi.org/simple" }
315
+ sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" }
316
+ wheels = [
317
+ { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" },
318
+ ]
319
+
267
320
  [[package]]
268
321
  name = "myst-parser"
269
322
  version = "4.0.1"
@@ -290,6 +343,15 @@ wheels = [
290
343
  { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" },
291
344
  ]
292
345
 
346
+ [[package]]
347
+ name = "pathspec"
348
+ version = "0.12.1"
349
+ source = { registry = "https://pypi.org/simple" }
350
+ sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043, upload-time = "2023-12-10T22:30:45Z" }
351
+ wheels = [
352
+ { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191, upload-time = "2023-12-10T22:30:43.14Z" },
353
+ ]
354
+
293
355
  [[package]]
294
356
  name = "pluggy"
295
357
  version = "1.5.0"
@@ -526,7 +588,7 @@ wheels = [
526
588
 
527
589
  [[package]]
528
590
  name = "xcomponent"
529
- version = "0.5.0"
591
+ version = "0.5.2"
530
592
  source = { editable = "." }
531
593
 
532
594
  [package.optional-dependencies]
@@ -540,6 +602,8 @@ docs = [
540
602
 
541
603
  [package.dev-dependencies]
542
604
  dev = [
605
+ { name = "bs4" },
606
+ { name = "mypy" },
543
607
  { name = "pytest" },
544
608
  ]
545
609
  docs = [
@@ -561,7 +625,11 @@ requires-dist = [
561
625
  provides-extras = ["docs"]
562
626
 
563
627
  [package.metadata.requires-dev]
564
- dev = [{ name = "pytest", specifier = ">=8.3.5,<9" }]
628
+ dev = [
629
+ { name = "bs4", specifier = ">=0.0.2" },
630
+ { name = "mypy", specifier = ">=1.16.0,<2" },
631
+ { name = "pytest", specifier = ">=8.3.5,<9" },
632
+ ]
565
633
  docs = [
566
634
  { name = "furo", specifier = ">=2024.5.6" },
567
635
  { name = "linkify-it-py", specifier = ">=2.0.3,<3" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes