Configurable should warn on unrecognized arguments
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start with the existing unrecognized-argument test in tests/test_traitlets.py, then inspect the related handling in traitlets/traitlets.py and the Configurable definition in traitlets/config/configurable.py. Confirm the behavior for direct HasTraits subclasses and make the corresponding Configurable case warn on unrecognized arguments, with regression coverage showing the warning.
Written by the indexing model from the issue text.
Description
Currently direct HasTraits subclasses warn when they receive unrecognized arguments:
However, this does not work with Configurable and its subclasses, although it is a subclass of HasTraits:
Context
This is implemented in:
Related to https://github.com/ipython/traitlets/issues/145.
- Dominant language
- Python
- Stars
- 653
- Forks
- 217
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ipython/traitlets
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in ipython/traitlets
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100