Skip to content

DeprecationWarning: metadata {'args': (None,)} was set from the constructor #48

@pllim

Description

@pllim

Saw this warning in a downstream test. cc @maartenbreddels

../../.tox/py39-test-devdeps/lib/python3.9/site-packages/bqscales/__init__.py:18: in <module>
    from .scales import (  # noqa
../../.tox/py39-test-devdeps/lib/python3.9/site-packages/bqscales/scales.py:402: in <module>
    class DateScale(Scale):
../../.tox/py39-test-devdeps/lib/python3.9/site-packages/bqscales/scales.py:425: in DateScale
    min = Date(default_value=None, allow_none=True).tag(sync=True)
../../.tox/py39-test-devdeps/lib/python3.9/site-packages/bqscales/traits.py:56: in __init__
    super(Date, self).__init__(args=args, **kwargs)
../../.tox/py39-test-devdeps/lib/python3.9/site-packages/traitlets/traitlets.py:467: in __init__
    warn("metadata %s was set from the constructor. "
E   DeprecationWarning: metadata {'args': (None,)} was set from the constructor. With traitlets 4.1, metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions