param 2.2.0rc1__tar.gz → 2.2.1__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 (69) hide show
  1. {param-2.2.0rc1 → param-2.2.1}/PKG-INFO +1 -1
  2. {param-2.2.0rc1 → param-2.2.1}/param/_version.py +9 -4
  3. {param-2.2.0rc1 → param-2.2.1}/param/parameterized.py +1 -1
  4. {param-2.2.0rc1 → param-2.2.1}/tests/testrefs.py +14 -0
  5. {param-2.2.0rc1 → param-2.2.1}/.gitignore +0 -0
  6. {param-2.2.0rc1 → param-2.2.1}/LICENSE.txt +0 -0
  7. {param-2.2.0rc1 → param-2.2.1}/README.md +0 -0
  8. {param-2.2.0rc1 → param-2.2.1}/numbergen/__init__.py +0 -0
  9. {param-2.2.0rc1 → param-2.2.1}/param/__init__.py +0 -0
  10. {param-2.2.0rc1 → param-2.2.1}/param/_utils.py +0 -0
  11. {param-2.2.0rc1 → param-2.2.1}/param/depends.py +0 -0
  12. {param-2.2.0rc1 → param-2.2.1}/param/display.py +0 -0
  13. {param-2.2.0rc1 → param-2.2.1}/param/ipython.py +0 -0
  14. {param-2.2.0rc1 → param-2.2.1}/param/parameters.py +0 -0
  15. {param-2.2.0rc1 → param-2.2.1}/param/reactive.py +0 -0
  16. {param-2.2.0rc1 → param-2.2.1}/param/serializer.py +0 -0
  17. {param-2.2.0rc1 → param-2.2.1}/param/version.py +0 -0
  18. {param-2.2.0rc1 → param-2.2.1}/pyproject.toml +0 -0
  19. {param-2.2.0rc1 → param-2.2.1}/tests/__init__.py +0 -0
  20. {param-2.2.0rc1 → param-2.2.1}/tests/conftest.py +0 -0
  21. {param-2.2.0rc1 → param-2.2.1}/tests/testaddparameter.py +0 -0
  22. {param-2.2.0rc1 → param-2.2.1}/tests/testbind.py +0 -0
  23. {param-2.2.0rc1 → param-2.2.1}/tests/testbooleanparam.py +0 -0
  24. {param-2.2.0rc1 → param-2.2.1}/tests/testbytesparam.py +0 -0
  25. {param-2.2.0rc1 → param-2.2.1}/tests/testcalendardateparam.py +0 -0
  26. {param-2.2.0rc1 → param-2.2.1}/tests/testcalendardaterangeparam.py +0 -0
  27. {param-2.2.0rc1 → param-2.2.1}/tests/testcallable.py +0 -0
  28. {param-2.2.0rc1 → param-2.2.1}/tests/testclassselector.py +0 -0
  29. {param-2.2.0rc1 → param-2.2.1}/tests/testcolorparameter.py +0 -0
  30. {param-2.2.0rc1 → param-2.2.1}/tests/testcomparator.py +0 -0
  31. {param-2.2.0rc1 → param-2.2.1}/tests/testcompositeparams.py +0 -0
  32. {param-2.2.0rc1 → param-2.2.1}/tests/testcustomparam.py +0 -0
  33. {param-2.2.0rc1 → param-2.2.1}/tests/testdateparam.py +0 -0
  34. {param-2.2.0rc1 → param-2.2.1}/tests/testdaterangeparam.py +0 -0
  35. {param-2.2.0rc1 → param-2.2.1}/tests/testdefaults.py +0 -0
  36. {param-2.2.0rc1 → param-2.2.1}/tests/testdeprecations.py +0 -0
  37. {param-2.2.0rc1 → param-2.2.1}/tests/testdynamicparams.py +0 -0
  38. {param-2.2.0rc1 → param-2.2.1}/tests/testfiledeserialization.py +0 -0
  39. {param-2.2.0rc1 → param-2.2.1}/tests/testfileselector.py +0 -0
  40. {param-2.2.0rc1 → param-2.2.1}/tests/testimports.py +0 -0
  41. {param-2.2.0rc1 → param-2.2.1}/tests/testipythonmagic.py +0 -0
  42. {param-2.2.0rc1 → param-2.2.1}/tests/testjsonserialization.py +0 -0
  43. {param-2.2.0rc1 → param-2.2.1}/tests/testlist.py +0 -0
  44. {param-2.2.0rc1 → param-2.2.1}/tests/testlistselector.py +0 -0
  45. {param-2.2.0rc1 → param-2.2.1}/tests/testmultifileselector.py +0 -0
  46. {param-2.2.0rc1 → param-2.2.1}/tests/testnumbergen.py +0 -0
  47. {param-2.2.0rc1 → param-2.2.1}/tests/testnumberparameter.py +0 -0
  48. {param-2.2.0rc1 → param-2.2.1}/tests/testnumpy.py +0 -0
  49. {param-2.2.0rc1 → param-2.2.1}/tests/testobjectselector.py +0 -0
  50. {param-2.2.0rc1 → param-2.2.1}/tests/testpandas.py +0 -0
  51. {param-2.2.0rc1 → param-2.2.1}/tests/testparamdepends.py +0 -0
  52. {param-2.2.0rc1 → param-2.2.1}/tests/testparameterizedobject.py +0 -0
  53. {param-2.2.0rc1 → param-2.2.1}/tests/testparameterizedrepr.py +0 -0
  54. {param-2.2.0rc1 → param-2.2.1}/tests/testparamoutput.py +0 -0
  55. {param-2.2.0rc1 → param-2.2.1}/tests/testparamunion.py +0 -0
  56. {param-2.2.0rc1 → param-2.2.1}/tests/testpathparam.py +0 -0
  57. {param-2.2.0rc1 → param-2.2.1}/tests/testpickle.py +0 -0
  58. {param-2.2.0rc1 → param-2.2.1}/tests/testrangeparameter.py +0 -0
  59. {param-2.2.0rc1 → param-2.2.1}/tests/testreactive.py +0 -0
  60. {param-2.2.0rc1 → param-2.2.1}/tests/testreprhtml.py +0 -0
  61. {param-2.2.0rc1 → param-2.2.1}/tests/testselector.py +0 -0
  62. {param-2.2.0rc1 → param-2.2.1}/tests/testsignatures.py +0 -0
  63. {param-2.2.0rc1 → param-2.2.1}/tests/teststringparam.py +0 -0
  64. {param-2.2.0rc1 → param-2.2.1}/tests/testtimedependent.py +0 -0
  65. {param-2.2.0rc1 → param-2.2.1}/tests/testtupleparam.py +0 -0
  66. {param-2.2.0rc1 → param-2.2.1}/tests/testutils.py +0 -0
  67. {param-2.2.0rc1 → param-2.2.1}/tests/testversion.py +0 -0
  68. {param-2.2.0rc1 → param-2.2.1}/tests/testwatch.py +0 -0
  69. {param-2.2.0rc1 → param-2.2.1}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: param
3
- Version: 2.2.0rc1
3
+ Version: 2.2.1
4
4
  Summary: Make your Python code clearer and more reliable by declaring Parameters.
5
5
  Project-URL: Homepage, https://param.holoviz.org/
6
6
  Project-URL: Tracker, https://github.com/holoviz/param/issues
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '2.2.0rc1'
16
- __version_tuple__ = version_tuple = (2, 2, 0)
20
+ __version__ = version = '2.2.1'
21
+ __version_tuple__ = version_tuple = (2, 2, 1)
@@ -2011,7 +2011,7 @@ class Parameters:
2011
2011
  dep_obj.param.unwatch(watcher)
2012
2012
  self_.self._param__private.ref_watchers = []
2013
2013
  refs = dict(self_.self._param__private.refs, **{name: ref})
2014
- deps = {name: resolve_ref(ref) for name, ref in refs.items()}
2014
+ deps = {name: resolve_ref(ref, self_[name].nested_refs) for name, ref in refs.items()}
2015
2015
  self_._setup_refs(deps)
2016
2016
  self_.self._param__private.refs = refs
2017
2017
 
@@ -136,6 +136,20 @@ def test_nested_list_parameter_ref():
136
136
  p2.string_list = [p3.param.string, 'another']
137
137
  assert p2.string_list == ['foo', 'another']
138
138
 
139
+ def test_nested_nested_parameter_ref_not_overwritten():
140
+ # Ensure refs are not removed when updating another ref
141
+ p = Parameters(string='bar')
142
+ p2 = Parameters(string='foo')
143
+ p3 = Parameters(string=p.param.string, string_list=[p2.param.string, 'other'])
144
+ p4 = Parameters()
145
+
146
+ assert p3.string_list == ['foo', 'other']
147
+ p3.string = p4.param.string
148
+ p.string = 'fizz'
149
+ p2.string = 'buzz'
150
+ assert p3.string == 'string'
151
+ assert p3.string_list == ['buzz', 'other']
152
+
139
153
  def test_nested_dict_key_parameter_ref():
140
154
  p = Parameters()
141
155
  p2 = Parameters(dictionary={p.param.string: 'value'})
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