Skip to content

Commit

Permalink
Clean up Metobs Data init function
Browse files Browse the repository at this point in the history
  • Loading branch information
docNord committed May 4, 2024
1 parent a44a234 commit 7c436f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smhi/metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class Data(BaseMetobs):
def __init__(
self,
periods_in_station: Periods,
period: str = "not-set",
period: Optional[str] = None,
data_type: str = "json",
) -> None:
"""Get data from period.
Expand All @@ -323,7 +323,7 @@ def __init__(
"""
super().__init__()

if period == "not-set":
if period == None:

Check failure on line 326 in src/smhi/metobs.py

View workflow job for this annotation

GitHub Actions / lint (3.11)

Ruff (E711)

src/smhi/metobs.py:326:22: E711 Comparison to `None` should be `cond is None`
ordering = {
"latest-hour": 0,
"latest-day": 1,
Expand Down

0 comments on commit 7c436f2

Please sign in to comment.