Handling deprecation warnings in python
November 4, 2024
from warnings import warn
def get_positions(port_ids: str, url: Optional[str]) -> Any:
if url is not None:
warn("Argument 'url' is no longer used and wil be deprecated in a future release", DeprecationWarning, stacklevel=2)