Skip to content

Inconsistent dictionary formatting #1

@rsftb

Description

@rsftb

If weather = Weather(temperature_unit="Kelvin"), then the formatting of the keys in data = weather.fetch_weather(city) is inconsistent with the other temperatures. data["Temperature: "] is instead data["Temperature : "].

Could you patch this?

My local fix: temperature = data["Temperature: "] if data.get("Temperature: ", False) else data["Temperature : "]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions