Skip to content

Union trait does not produce correct info_text for Instance traits #247

@penenkel

Description

@penenkel

When using Instance traits within a Union trait their info_text seems to get lost:

import traitlets as tr

tr.Union([tr.Instance(int)]).info()
# returns 'any value'

tr.Instance(int).info()
# returns 'an int'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions