cli-weather
cli-weather copied to clipboard
[RFE] Across: Add method description to all methods inside the cli-weather build
Request For Enhancement:
This feature would be useful for all hovers on methods on Text Editors. Give a good description of what the method does in brief. First time contributors will be able to make this a Git practice.
Example:
from:
def get_basic_temparature(main_data, degree):
data = main_data['data']
city = data[0]['city_name']
print("Current temparature in {} is {} {}" .format(city.capitalize(), data[0]['temp'], degree))
to:
def get_basic_temparature(main_data, degree):
""" Display the current temperature with corresponding city name """
data = main_data['data']
city = data[0]['city_name']
print("Current temparature in {} is {} {}" .format(city.capitalize(), data[0]['temp'], degree))