traitlets
traitlets copied to clipboard
A lightweight Traits like module
due to https://github.com/ipython/traitlets/pull/817 (from traitlets >=5.8) we dont export `observe` anymore, previously we could do `from traitlets import *` and have observe available. I know it's not good practice, but...
Slightly adapting the `UseEnum` example to use a `str` based enum makes it fail to recognize the enum by the value: ``` import enum from traitlets import HasTraits, UseEnum class...
Per the title, there is no mention of `make_dynamic_default` for custom `TraitTypes` in the [docs right now](https://traitlets.readthedocs.io/en/stable/defining_traits.html). The current example uses a tuple with two immutable elements, so it's technically...
In the API reference on https://traitlets.readthedocs.io/en/stable/api.html the unobserve function is not listed.
in get_type_hints(Appliction), TypeError: <class 'traitlets.traitlets.Dict'> is not a generic class
The expression `get_type_hints(Application)` raises an exception, given the class `traitlets.config.application.Application` or a subclass. ### Minimal Example file `traitlets_debug_00.py` ```python from traitlets.config.application import Application from typing_extensions import get_type_hints if __name__ ==...
[log](https://freebsd.org/~yuri/traitlets-5.14.2-tests.log) Version: 5.14.2 Python: 3.9 FreeBSD 14.0
This python2 hack was added in #238 but is no longer needed.
With the upgrade to 3.12.7 tests started to fail, most likely because of [large changes to argparse module](https://docs.python.org/3/whatsnew/changelog.html#changelog): ``` [ 42s] =================================== FAILURES =================================== [ 42s] _______________ TestArgcomplete.test_complete_custom_completers ________________ [...
See https://github.com/jupyterlab/jupyter-ai/issues/913. Introduced in https://github.com/ipython/traitlets/pull/885 which should have no side effects as it was meant to only update types. - 952d6a7e6ad4fb971a8d209b1aea108731641dec (Publish 5.12.0) good - 3a03835f9d2d837ee95da1b5fdb3f505528b8585 (https://github.com/ipython/traitlets/pull/884) good - 4f0e68b7f9c4f42227c24ab15ff126e792f99098...