telegram_avatar/avatar_generator.py
def _get_celsius_from_kelvin(t_kelvin: Union[int, float, str]) -> str:
        """
        Method which converts temperature from Kelvin scale to Celsius
        and formats it to the "<sign><temperature> C" like view.
        Args:
            t_kelvin: string or number with Kelvin scale temperature.
        Returns:
            string with formatted temperature in Celsius scale.
        """
        t_kelvin = int(t_kelvin)
        t_celsius = t_kelvin-273
        result = u"{} C".format(str(t_celsius))
        if t_celsius >= 0:
            result = "+" + result
        return result

        Method which converts temperature from Kelvin scale to Celsius
        and formats it to the "<sign><temperature> C" like view.
        Args:
            t_kelvin: string or number with Kelvin scale temperature.
        Returns:
            string with formatted temperature in Celsius scale.
        
Method which converts temperature from Kelvin scale to Celsius
and formats it to the " C" like view.
Method which converts temperature from Kelvin scale to Celsius and formats it to the " C " like view .
def _get_celsius_from_kelvin(t_kelvin: Union[int, float, str]) -> str:
        t_kelvin = int(t_kelvin)
        t_celsius = t_kelvin-273
        result = u"{} C".format(str(t_celsius))
        if t_celsius >= 0:
            result = "+" + result
        return result
def _get_celsius_from_kelvin ( t_kelvin : Union [ int , float , str ] ) -> str : t_kelvin = int ( t_kelvin ) t_celsius = t_kelvin - 273 result = u"{} C" . format ( str ( t_celsius ) ) if t_celsius >= 0 : result = "+" + result return result
Method which converts temperature from Kelvin scale to Celsius
and formats it to the "<sign><temperature> C" like view.
Method which converts temperature from Kelvin scale to Celsius and formats it to the " <sign > <temperature > C " like view .
"""
        Method which converts temperature from Kelvin scale to Celsius
        and formats it to the "<sign><temperature> C" like view.
        Args:
            t_kelvin: string or number with Kelvin scale temperature.
        Returns:
            string with formatted temperature in Celsius scale.
        """
string with formatted temperature in Celsius scale.
string with formatted temperature in Celsius scale .
t_kelvin
Union[int, float, str]
string or number with Kelvin scale temperature.
string or number with Kelvin scale temperature .