diff options
| author | smosker <[email protected]> | 2022-02-10 16:48:22 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:22 +0300 |
| commit | 01fa2667d0e5e868b18424bc1906146e5ee340db (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/python/traitlets/py3 | |
| parent | dd14d17a747a9c259858faf2fcc3ea6b92df4e15 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/traitlets/py3')
| -rw-r--r-- | contrib/python/traitlets/py3/traitlets/traitlets.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/traitlets/py3/traitlets/traitlets.py b/contrib/python/traitlets/py3/traitlets/traitlets.py index f85dce335f7..6bdf7414d36 100644 --- a/contrib/python/traitlets/py3/traitlets/traitlets.py +++ b/contrib/python/traitlets/py3/traitlets/traitlets.py @@ -432,8 +432,8 @@ class TraitType(BaseDescriptor): info_text = 'any value' default_value = Undefined - def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None, - config=None, **kwargs): + def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None, + config=None, **kwargs): """Declare a traitlet. If *allow_none* is True, None is a valid value in addition to any @@ -475,8 +475,8 @@ class TraitType(BaseDescriptor): self.metadata = kwargs else: self.metadata = self.metadata.copy() - if config is not None: - self.metadata['config'] = config + if config is not None: + self.metadata['config'] = config # We add help to the metadata during a deprecation period so that # code that looks for the help string there can find it. |
