Revisions of python-traits
Ana Guerrero (anag+factory)
accepted
request 1138237
from
Dirk Mueller (dirkmueller)
(revision 10)
- update to 6.4.3: * This is a bugfix release that fixes test failures with Sphinx 7.2 and later, and adds support for Python 3.12 * Rename requires_numpy_testing decorator to requires_numpy_typing, and have it check for numpy.typing, not numpy.testing. * Fix missing numpy_examples directory in traits-stubs package data. * Validation of items within a container (e.g., foos = List(MyTraitType)) now always matches the validation used for the item trait at top level (e.g., foo = MyTraitType). Previously, the validation methods used could differ, thanks to a bug in the container implementations. For most trait types this will make no difference, but for the Tuple trait type this change has the consequence that lists will no longer be accepted as valid for Tuple traits inside list items. See issue #1619 and PR #1625 for more information. * Related to the above: a top-level Tuple() trait declaration currently accepts Python list objects, while a Tuple declaration with explicit item types (for example Tuple(Int(), Int())) does not. The support for list objects in plain Tuple() is deprecated, and will be removed in a future version of Traits. See PR #1627 for more information. * The following people contributed code changes for this release: * Caio Agiani * Steve Allen * Mark Dickinson * Sai Rahul Poruri * Corran Webster Features ~~~~~~~~ * ETSConfig attributes now support deletion. This makes it easier to make * Complex trait type validation is now more lenient: any type that implements __complex__ will be accepted.
Dominique Leuenberger (dimstar_suse)
accepted
request 927624
from
Steve Kowalik (StevenK)
(revision 9)
- Update to 6.3.1: * Make PrefixMap._map available again, for compatibility with Mayavi. (#1578) * Support for Python 3.10 has been added. * The observe mini-language now supports use of "*" for listening to all traits on a HasTraits object. Currently this support is limited to cases where the "*" appears in a terminal position. For example, observe("foo:*") is supported, but observe("*:foo") is not. (#1496, #1525) * The Any trait type now supports a factory argument (with accompanying args and kw arguments). This can be used to specify a per-instance default, for example with Any(factory=dict). (#1557, #1558) * When a method is decorated with an observe decorator, the method signature is now checked, and a warning issued if it doesn't match the expected signature. (#1529) * The Date, Datetime and Time trait types have a new argument allow_none. (#1432) * The Date trait type has a new argument allow_datetime .(#1429) * The ObserverGraph instances that result from compiling ObserverExpression objects and observe mini-language strings are now cached. * The equality definition on ObserverExpression has been simplified. (#1517) * A failure to parse an observe mini-language string now raises ValueError rather than LarkError. (#1507) * Invalid assignments to PrefixList and PrefixMap traits produced an unnecessarily nested exception. This has been fixed. (#1564) * An observe-decorated listener method whose name has the special form "_traitname_changed" will no longer be triggered both as as result of the observe decorator and the special naming: it will only be triggered via the observe decorator. (#1560) * The delegate parameter was mistyped in the typing stubs for the Delegate trait type. This has been fixed. (#1556) * The Function and Method trait types will no longer fail when arguments are
Dominique Leuenberger (dimstar_suse)
accepted
request 820887
from
Tomáš Chvátal (scarabeus_iv)
(revision 7)
Dominique Leuenberger (dimstar_suse)
accepted
request 717484
from
Tomáš Chvátal (scarabeus_iv)
(revision 5)
- Update to 5.1.2: * Traits documenter no longer generates bad reST for traits whose definition spans multiple source lines. (#494)
Dominique Leuenberger (dimstar_suse)
accepted
request 697378
from
Tomáš Chvátal (scarabeus_iv)
(revision 4)
Dominique Leuenberger (dimstar_suse)
accepted
request 695180
from
Tomáš Chvátal (scarabeus_iv)
(revision 3)
- version update to 5.1.0 * Make UUID trait initializable. (#459) * Change default ``FileEditor`` behavior for a ``File`` trait based on whether ``exists=True`` is specified for that trait. (#451, #467) * The changes made in #373 to make dynamically-added traits pickleable have been reverted. (#462) * ``traits.api.python_version`` has been removed. Internals have been refactored to use ``six.PY2`` in preference to ``sys.version_info``. (#449) * Don't depend on the 3rd party ``mock`` library on Python 3; use ``unittest.mock`` instead. (#446) - Drop no longer needed avoid_sys_modules_hackery.patch
Dominique Leuenberger (dimstar_suse)
accepted
request 605793
from
Todd R (TheBlackCat)
(revision 1)
Needed by python-enable
Displaying all 10 revisions