"""Define the Weather Class"""
import dataclasses
from datetime import datetime


@dataclasses.dataclass
class Weather():
    """
    Class to define a weather object
    """

    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime

    @classmethod
    def from_dict(self, data):
        return Weather(**data)


    def to_dict(self):
        return dataclasses.asdict(self)

f775353e79f3c61bd2745b5ee71389176813b4a1
<mask token>


@dataclasses.dataclass
class Weather:
    <mask token>
    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime
    <mask token>

    def to_dict(self):
        return dataclasses.asdict(self)

<mask token>


@dataclasses.dataclass
class Weather:
    <mask token>
    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime

    @classmethod
    def from_dict(self, data):
        return Weather(**data)

    def to_dict(self):
        return dataclasses.asdict(self)

<mask token>


@dataclasses.dataclass
class Weather:
    """
    Class to define a weather object
    """
    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime

    @classmethod
    def from_dict(self, data):
        return Weather(**data)

    def to_dict(self):
        return dataclasses.asdict(self)

<mask token>
import dataclasses
from datetime import datetime


@dataclasses.dataclass
class Weather:
    """
    Class to define a weather object
    """
    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime

    @classmethod
    def from_dict(self, data):
        return Weather(**data)

    def to_dict(self):
        return dataclasses.asdict(self)

"""Define the Weather Class"""
import dataclasses
from datetime import datetime


@dataclasses.dataclass
class Weather():
    """
    Class to define a weather object
    """

    code: str
    temperature: int
    wind_speed: float
    wind_deg: float
    cloudiness: str
    pressure: float
    humidity: float
    sunrise: datetime
    sunset: datetime

    @classmethod
    def from_dict(self, data):
        return Weather(**data)


    def to_dict(self):
        return dataclasses.asdict(self)
