UFRN-URNAI / urnai-tools

A modular Deep Reinforcement Learning library that supports multiple environments, made with Python 3.6.
Apache License 2.0
5 stars 8 forks source link

Define a feature depreciation policy #51

Closed alvarofpp closed 1 year ago

alvarofpp commented 1 year ago

Description

We must have a feature depreciation policy, something that allows us to deprecate code in a clear and objective way.

Topics and suggestions

alvarofpp commented 1 year ago

For this task, I am considering the following texts:

alvarofpp commented 1 year ago

My proposal is:

from warnings import warn, DeprecationWarning

def a(self):
    warn('You should use the `b` function. The `a` function will be removed in version 3.x.x', DeprecationWarning)
    pass

def b(self):
    pass

Some links for the record: