Skip to content

Commit

Permalink
remove typing-extensions from dependencies and upgrade to python vers…
Browse files Browse the repository at this point in the history
…ion >=3.8
  • Loading branch information
diego-garro committed Jan 11, 2025
1 parent d448ff5 commit aa8f39c
Show file tree
Hide file tree
Showing 6 changed files with 367 additions and 397 deletions.
2 changes: 1 addition & 1 deletion aeromet_py/reports/models/base/flight_rules.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, List, Optional

from typing_extensions import Protocol
from typing import Protocol

from .cloud import CloudList

Expand Down
2 changes: 1 addition & 1 deletion aeromet_py/reports/models/base/string_attribute.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from typing_extensions import Protocol
from typing import Protocol


class HasConcatenateStringProntocol(Protocol):
Expand Down
5 changes: 3 additions & 2 deletions aeromet_py/reports/models/metar/should_be_cavok.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing_extensions import Protocol
from typing import Protocol

from ..base import GroupList
from .cloud import CloudList
Expand All @@ -25,7 +25,8 @@ class ShouldBeCavokMixin(HasPrevailingCloudsWeatherProtocol):

def should_be_cavok(self) -> bool:
"""Analyses the conditions for CAVOK in the report. Returns `True` if CAVOK should
be reported, `False` if not or if there is no data to make a complete analysis."""
be reported, `False` if not or if there is no data to make a complete analysis.
"""
if len(self.weathers) > 0:
return False

Expand Down
2 changes: 1 addition & 1 deletion aeromet_py/reports/models/taf/valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime, timedelta
from typing import Any, Dict, Optional

from typing_extensions import Protocol
from typing import Protocol

from ..base import Group, HasConcatenateStringProntocol, Time

Expand Down
Loading

0 comments on commit aa8f39c

Please sign in to comment.