migri/utils.py
def deprecated(message: str, end_of_life: Optional[str] = None):
    """Use to warn of deprecation. If end_of_life is provided,
    will append message with version in which functionality will be deprecated.

    :param message: Deprecation message
    :type message: str
    :param end_of_life: Version in which functionality will be deprecated
    :type end_of_life: str, optional
    """
    if end_of_life:
        message = f"{message} Will be removed in {end_of_life}."
        warning = DeprecationWarning
    else:
        warning = DeprecationWarning

    warnings.warn(message, warning, stacklevel=2)
Use to warn of deprecation. If end_of_life is provided,
    will append message with version in which functionality will be deprecated.

    :param message: Deprecation message
    :type message: str
    :param end_of_life: Version in which functionality will be deprecated
    :type end_of_life: str, optional
    
Use to warn of deprecation. If end_of_life is provided,
will append message with version in which functionality will be deprecated.
Use to warn of deprecation . If end_of_life is provided will append message with version in which functionality will be deprecated .
def deprecated(message: str, end_of_life: Optional[str] = None):
    if end_of_life:
        message = f"{message} Will be removed in {end_of_life}."
        warning = DeprecationWarning
    else:
        warning = DeprecationWarning
    warnings.warn(message, warning, stacklevel=2)
def deprecated ( message : str , end_of_life : Optional [ str ] = None ) : if end_of_life : message = f"{message} Will be removed in {end_of_life}." warning = DeprecationWarning else : warning = DeprecationWarning warnings . warn ( message , warning , stacklevel = 2 )
Use to warn of deprecation.
Use to warn of deprecation .
"""Use to warn of deprecation. If end_of_life is provided,
    will append message with version in which functionality will be deprecated.

    :param message: Deprecation message
    :type message: str
    :param end_of_life: Version in which functionality will be deprecated
    :type end_of_life: str, optional
    """
message
str
None
end_of_life
Optional[str]
Version in which functionality will be deprecated
Version in which functionality will be deprecated