Source code for tianshou.utils.warning

import warnings

warnings.simplefilter("once", DeprecationWarning)


[docs] def deprecation(msg: str) -> None: """Deprecation warning wrapper.""" warnings.warn(msg, category=DeprecationWarning, stacklevel=2)