aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-05-05 00:00:39 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-05-05 00:08:46 +0300
commitdf380d8d58748e4375664b1a5fe521cd717db4a9 (patch)
tree8f71c0812fc01d5bcd46efabcc22c173154675ef
parent0d7e1329b8f47f4ab8450c2cbc05654e10a214fc (diff)
downloadydb-df380d8d58748e4375664b1a5fe521cd717db4a9.tar.gz
Intermediate changes
-rw-r--r--contrib/python/traitlets/py3/.dist-info/METADATA6
-rw-r--r--contrib/python/traitlets/py3/tests/test_traitlets.py18
-rw-r--r--contrib/python/traitlets/py3/traitlets/_version.py2
-rw-r--r--contrib/python/traitlets/py3/traitlets/traitlets.py7
-rw-r--r--contrib/python/traitlets/py3/ya.make2
5 files changed, 24 insertions, 11 deletions
diff --git a/contrib/python/traitlets/py3/.dist-info/METADATA b/contrib/python/traitlets/py3/.dist-info/METADATA
index caa3b5c529..777822558d 100644
--- a/contrib/python/traitlets/py3/.dist-info/METADATA
+++ b/contrib/python/traitlets/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
-Metadata-Version: 2.1
+Metadata-Version: 2.3
Name: traitlets
-Version: 5.14.2
+Version: 5.14.3
Summary: Traitlets Python configuration system
Project-URL: Homepage, https://github.com/ipython/traitlets
Project-URL: Documentation, https://traitlets.readthedocs.io
@@ -60,7 +60,7 @@ Requires-Dist: mypy>=1.7.0; extra == 'test'
Requires-Dist: pre-commit; extra == 'test'
Requires-Dist: pytest-mock; extra == 'test'
Requires-Dist: pytest-mypy-testing; extra == 'test'
-Requires-Dist: pytest<8.1,>=7.0; extra == 'test'
+Requires-Dist: pytest<8.2,>=7.0; extra == 'test'
Description-Content-Type: text/markdown
# Traitlets
diff --git a/contrib/python/traitlets/py3/tests/test_traitlets.py b/contrib/python/traitlets/py3/tests/test_traitlets.py
index dfcf3f0f4b..f9f623b4ae 100644
--- a/contrib/python/traitlets/py3/tests/test_traitlets.py
+++ b/contrib/python/traitlets/py3/tests/test_traitlets.py
@@ -1658,6 +1658,24 @@ class TestList(TraitTestBase):
return value
+class SetTrait(HasTraits):
+ value = Set(Unicode())
+
+
+class TestSet(TraitTestBase):
+ obj = SetTrait()
+
+ _default_value: t.Set[str] = set()
+ _good_values = [{"a", "b"}, "ab"]
+ _bad_values = [1]
+
+ def coerce(self, value):
+ if isinstance(value, str):
+ # compatibility handling: convert string to set containing string
+ value = {value}
+ return value
+
+
class Foo:
pass
diff --git a/contrib/python/traitlets/py3/traitlets/_version.py b/contrib/python/traitlets/py3/traitlets/_version.py
index 936ce75810..fea66b5e0a 100644
--- a/contrib/python/traitlets/py3/traitlets/_version.py
+++ b/contrib/python/traitlets/py3/traitlets/_version.py
@@ -7,7 +7,7 @@ import re
from typing import List
# Version string must appear intact for hatch versioning
-__version__ = "5.14.2"
+__version__ = "5.14.3"
# Build up version_info tuple for backwards compatibility
pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)"
diff --git a/contrib/python/traitlets/py3/traitlets/traitlets.py b/contrib/python/traitlets/py3/traitlets/traitlets.py
index 1d1675ab0c..ecd0d7cc39 100644
--- a/contrib/python/traitlets/py3/traitlets/traitlets.py
+++ b/contrib/python/traitlets/py3/traitlets/traitlets.py
@@ -3698,12 +3698,7 @@ class Set(Container[t.Set[t.Any]]):
def set(self, obj: t.Any, value: t.Any) -> None:
if isinstance(value, str):
- return super().set(
- obj,
- set(
- value,
- ),
- )
+ return super().set(obj, {value})
else:
return super().set(obj, value)
diff --git a/contrib/python/traitlets/py3/ya.make b/contrib/python/traitlets/py3/ya.make
index 2cd21a7996..ed5c06a2c0 100644
--- a/contrib/python/traitlets/py3/ya.make
+++ b/contrib/python/traitlets/py3/ya.make
@@ -4,7 +4,7 @@ PY3_LIBRARY()
PROVIDES(python_traitlets)
-VERSION(5.14.2)
+VERSION(5.14.3)
LICENSE(BSD-3-Clause)