Configurable should warn on unrecognized arguments
- Vorherrschende Sprache
- Python
- Sterne
- 653
- Forks
- 217
- Ø Merge
- 2 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Currently direct `HasTraits` subclasses warn when they receive unrecognized arguments:
https://github.com/ipython/traitlets/blob/b0eaa6aa77e198cff68644a388400db850670c7d/tests/test_traitlets.py#L2802-L2810
However, this does not work with `Configurable` and its subclasses, although it is a subclass of `HasTraits`:
https://github.com/ipython/traitlets/blob/b0eaa6aa77e198cff68644a388400db850670c7d/traitlets/config/configurable.py#L53

### Context
This is implemented in:
https://github.com/ipython/traitlets/blob/b0eaa6aa77e198cff68644a388400db850670c7d/traitlets/traitlets.py#L1381-L1399
Related to https://github.com/ipython/traitlets/issues/145.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.