Skip to content

[Bug] - DeprecationWarning on instantiation of Client #114

@cgearing

Description

@cgearing

Hi there,

It looks like based on how the deprecations were implemented in #107 results in a DeprecationWarning on instantiating a client, e.g:

>>> config = {
...     "api_key": "your_api_key",
...     "nodes": [
...         {"host": "localhost", "port": "8108", "protocol": "http"}
...     ],
...     "connection_timeout_seconds": 2,
... }
>>> client = Client(config)
Deprecation warning: AnalyticsRulesV1 is deprecated on v30+. Use client.analytics instead.

It would be great for this not to happen, since it fills up logs with noise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions