Skip to content

Commit bce61e5

Browse files
HansChaudryHans D! Chaudry
andauthored
feat: add new Kind (SMOKY_HAZE) (#74)
* Update missing method to include new value 149 for FOG * creating new Kind for SMOKY_HAZE * updating test to inlcude new Kind * pushing emoji changes --------- Co-authored-by: Hans D! Chaudry <hansolo@Hans-MacBook-Pro.local>
1 parent b82e728 commit bce61e5

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎python_weather/constants.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ def __repr__(self) -> str:
4545
'❄️',
4646
'🌩',
4747
'⛈',
48+
'🌫',
4849
)
4950
WIND_DIRECTION_EMOJIS = '↑', '↖', '←', '↙', '↓', '↘', '→', '↗'

‎python_weather/enums.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ class Kind(BasicEnum):
295295
HEAVY_SNOW_SHOWERS = 335
296296
THUNDERY_HEAVY_RAIN = 389
297297
THUNDERY_SNOW_SHOWERS = 392
298+
SMOKY_HAZE = 149
298299

299300
@classmethod
300301
def _missing_(cls, value: object) -> 'Kind | None':

‎tests/test_enums.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_HeatIndex_works(index: int) -> None:
3434
119,
3535
122,
3636
143,
37+
149,
3738
176,
3839
179,
3940
182,

0 commit comments

Comments
 (0)