param 2.5.0b0__tar.gz → 2.5.0b2__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 (75) hide show
  1. {param-2.5.0b0 → param-2.5.0b2}/PKG-INFO +1 -1
  2. {param-2.5.0b0 → param-2.5.0b2}/param/_version.py +2 -2
  3. {param-2.5.0b0 → param-2.5.0b2}/param/reactive.py +1 -1
  4. {param-2.5.0b0 → param-2.5.0b2}/pyproject.toml +1 -0
  5. {param-2.5.0b0 → param-2.5.0b2}/tests/testreactive.py +20 -0
  6. {param-2.5.0b0 → param-2.5.0b2}/.gitignore +0 -0
  7. {param-2.5.0b0 → param-2.5.0b2}/LICENSE.txt +0 -0
  8. {param-2.5.0b0 → param-2.5.0b2}/README.md +0 -0
  9. {param-2.5.0b0 → param-2.5.0b2}/numbergen/__init__.py +0 -0
  10. {param-2.5.0b0 → param-2.5.0b2}/param/__init__.py +0 -0
  11. {param-2.5.0b0 → param-2.5.0b2}/param/_utils.py +0 -0
  12. {param-2.5.0b0 → param-2.5.0b2}/param/depends.py +0 -0
  13. {param-2.5.0b0 → param-2.5.0b2}/param/display.py +0 -0
  14. {param-2.5.0b0 → param-2.5.0b2}/param/ipython.py +0 -0
  15. {param-2.5.0b0 → param-2.5.0b2}/param/mypy_plugin.py +0 -0
  16. {param-2.5.0b0 → param-2.5.0b2}/param/parameterized.py +0 -0
  17. {param-2.5.0b0 → param-2.5.0b2}/param/parameters.py +0 -0
  18. {param-2.5.0b0 → param-2.5.0b2}/param/py.typed +0 -0
  19. {param-2.5.0b0 → param-2.5.0b2}/param/serializer.py +0 -0
  20. {param-2.5.0b0 → param-2.5.0b2}/param/version.py +0 -0
  21. {param-2.5.0b0 → param-2.5.0b2}/tests/__init__.py +0 -0
  22. {param-2.5.0b0 → param-2.5.0b2}/tests/assert_types.py +0 -0
  23. {param-2.5.0b0 → param-2.5.0b2}/tests/conftest.py +0 -0
  24. {param-2.5.0b0 → param-2.5.0b2}/tests/pyrightconfig-bare.json +0 -0
  25. {param-2.5.0b0 → param-2.5.0b2}/tests/testaddparameter.py +0 -0
  26. {param-2.5.0b0 → param-2.5.0b2}/tests/testbind.py +0 -0
  27. {param-2.5.0b0 → param-2.5.0b2}/tests/testbooleanparam.py +0 -0
  28. {param-2.5.0b0 → param-2.5.0b2}/tests/testbytesparam.py +0 -0
  29. {param-2.5.0b0 → param-2.5.0b2}/tests/testcalendardateparam.py +0 -0
  30. {param-2.5.0b0 → param-2.5.0b2}/tests/testcalendardaterangeparam.py +0 -0
  31. {param-2.5.0b0 → param-2.5.0b2}/tests/testcallable.py +0 -0
  32. {param-2.5.0b0 → param-2.5.0b2}/tests/testclassselector.py +0 -0
  33. {param-2.5.0b0 → param-2.5.0b2}/tests/testcolorparameter.py +0 -0
  34. {param-2.5.0b0 → param-2.5.0b2}/tests/testcomparator.py +0 -0
  35. {param-2.5.0b0 → param-2.5.0b2}/tests/testcompositeparams.py +0 -0
  36. {param-2.5.0b0 → param-2.5.0b2}/tests/testcustomparam.py +0 -0
  37. {param-2.5.0b0 → param-2.5.0b2}/tests/testdateparam.py +0 -0
  38. {param-2.5.0b0 → param-2.5.0b2}/tests/testdaterangeparam.py +0 -0
  39. {param-2.5.0b0 → param-2.5.0b2}/tests/testdefaultfactory.py +0 -0
  40. {param-2.5.0b0 → param-2.5.0b2}/tests/testdefaults.py +0 -0
  41. {param-2.5.0b0 → param-2.5.0b2}/tests/testdeprecations.py +0 -0
  42. {param-2.5.0b0 → param-2.5.0b2}/tests/testdynamicparams.py +0 -0
  43. {param-2.5.0b0 → param-2.5.0b2}/tests/testfiledeserialization.py +0 -0
  44. {param-2.5.0b0 → param-2.5.0b2}/tests/testfileselector.py +0 -0
  45. {param-2.5.0b0 → param-2.5.0b2}/tests/testimports.py +0 -0
  46. {param-2.5.0b0 → param-2.5.0b2}/tests/testipythonmagic.py +0 -0
  47. {param-2.5.0b0 → param-2.5.0b2}/tests/testjsonserialization.py +0 -0
  48. {param-2.5.0b0 → param-2.5.0b2}/tests/testlist.py +0 -0
  49. {param-2.5.0b0 → param-2.5.0b2}/tests/testlistselector.py +0 -0
  50. {param-2.5.0b0 → param-2.5.0b2}/tests/testmultifileselector.py +0 -0
  51. {param-2.5.0b0 → param-2.5.0b2}/tests/testnumbergen.py +0 -0
  52. {param-2.5.0b0 → param-2.5.0b2}/tests/testnumberparameter.py +0 -0
  53. {param-2.5.0b0 → param-2.5.0b2}/tests/testnumpy.py +0 -0
  54. {param-2.5.0b0 → param-2.5.0b2}/tests/testobjectselector.py +0 -0
  55. {param-2.5.0b0 → param-2.5.0b2}/tests/testpandas.py +0 -0
  56. {param-2.5.0b0 → param-2.5.0b2}/tests/testparamdepends.py +0 -0
  57. {param-2.5.0b0 → param-2.5.0b2}/tests/testparameter.py +0 -0
  58. {param-2.5.0b0 → param-2.5.0b2}/tests/testparameterizedobject.py +0 -0
  59. {param-2.5.0b0 → param-2.5.0b2}/tests/testparameterizedrepr.py +0 -0
  60. {param-2.5.0b0 → param-2.5.0b2}/tests/testparamoutput.py +0 -0
  61. {param-2.5.0b0 → param-2.5.0b2}/tests/testparamunion.py +0 -0
  62. {param-2.5.0b0 → param-2.5.0b2}/tests/testpathparam.py +0 -0
  63. {param-2.5.0b0 → param-2.5.0b2}/tests/testpickle.py +0 -0
  64. {param-2.5.0b0 → param-2.5.0b2}/tests/testrangeparameter.py +0 -0
  65. {param-2.5.0b0 → param-2.5.0b2}/tests/testrefs.py +0 -0
  66. {param-2.5.0b0 → param-2.5.0b2}/tests/testreprhtml.py +0 -0
  67. {param-2.5.0b0 → param-2.5.0b2}/tests/testselector.py +0 -0
  68. {param-2.5.0b0 → param-2.5.0b2}/tests/testsignatures.py +0 -0
  69. {param-2.5.0b0 → param-2.5.0b2}/tests/teststringparam.py +0 -0
  70. {param-2.5.0b0 → param-2.5.0b2}/tests/testtimedependent.py +0 -0
  71. {param-2.5.0b0 → param-2.5.0b2}/tests/testtupleparam.py +0 -0
  72. {param-2.5.0b0 → param-2.5.0b2}/tests/testutils.py +0 -0
  73. {param-2.5.0b0 → param-2.5.0b2}/tests/testversion.py +0 -0
  74. {param-2.5.0b0 → param-2.5.0b2}/tests/testwatch.py +0 -0
  75. {param-2.5.0b0 → param-2.5.0b2}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: param
3
- Version: 2.5.0b0
3
+ Version: 2.5.0b2
4
4
  Summary: Declarative parameters for robust Python classes and a rich API for reactive programming
5
5
  Project-URL: Homepage, https://param.holoviz.org/
6
6
  Project-URL: Tracker, https://github.com/holoviz/param/issues
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '2.5.0b0'
22
- __version_tuple__ = version_tuple = (2, 5, 0, 'b0')
21
+ __version__ = version = '2.5.0b2'
22
+ __version_tuple__ = version_tuple = (2, 5, 0, 'b2')
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -1530,7 +1530,7 @@ class reactive_ops:
1530
1530
  params = self._reactive._params
1531
1531
  else:
1532
1532
  params = resolve_ref(self._reactive)
1533
- trigger = Trigger(parameters=params)
1533
+ trigger = Trigger(parameters=params + xrefs + yrefs)
1534
1534
  if xrefs:
1535
1535
  def trigger_x(*args):
1536
1536
  if t.cast("bool", self.value):
@@ -114,6 +114,7 @@ addopts = "--color=yes"
114
114
  python_files = "test*.py"
115
115
  filterwarnings = [
116
116
  "error",
117
+ "ignore:Numpy built with MINGW-W64 on Windows 64 bits is experimental:Warning",
117
118
  ]
118
119
  xfail_strict = true
119
120
  asyncio_mode = "auto"
@@ -616,6 +616,26 @@ class TestSpecialMethods:
616
616
  p.boolean = False
617
617
  assert results == ['string', 'foo', 2.1]
618
618
 
619
+ def test_reactive_where_composed_argument_watches_selected_branch(self):
620
+ """A composed selector must publish changes to its selected branch."""
621
+ condition, first, second = rx(True), rx(1), rx(2)
622
+ selected = condition.rx.where(first, second)
623
+ composed = rx(lambda value: value * 10)(selected)
624
+ fired = []
625
+ composed.rx.watch(fired.append)
626
+
627
+ assert composed.rx.value == 10
628
+ first.rx.value = 5
629
+ assert fired == [50]
630
+ assert composed.rx.value == 50
631
+
632
+ second.rx.value = 6
633
+ assert fired == [50]
634
+ condition.rx.value = False
635
+ assert fired == [50, 60]
636
+ second.rx.value = 7
637
+ assert fired == [50, 60, 70]
638
+
619
639
  class TestWatch:
620
640
  """``.rx.watch()`` and its ``onlychanged``/lazy behavior."""
621
641
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes