Skip to content

Commit

Permalink
fix: types for diverted flights, py313 support, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaypacific8747 committed Dec 1, 2024
1 parent b31def6 commit d4ace02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
18 changes: 5 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "fr24"
version = "0.1.3"
version = "0.1.4"
description = "Parse gRPC and JSON data from flightradar24"
authors = [
{ name = "Abraham Cheung", email = "[email protected]" },
Expand All @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
Expand All @@ -42,18 +43,9 @@ Documentation = "https://cathaypacific8747.github.io/fr24/"
Issues = "https://github.com/cathaypacific8747/fr24/issues"

[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"textual-dev>=1.6.1",
]
typing = [
"mypy-protobuf>=3.6.0",
"mypy>=1.13.0",
"types-protobuf==5.28.*",
]
lint = [
"ruff>=0.7.2",
]
dev = ["ipykernel>=6.29.5", "textual-dev>=1.6.1"]
typing = ["mypy-protobuf>=3.6.0", "mypy>=1.13.0", "types-protobuf==5.28.*"]
lint = ["ruff>=0.7.2"]
test = [
"eval-type-backport>=0.2.0", # for pydantic, <3.10 syntax
"pydantic>=2.9.2",
Expand Down
5 changes: 3 additions & 2 deletions src/fr24/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class _GenericStatus(TypedDict):
text: str | None
type: str
color: str | None
diverted: None
diverted: str | None


class _GenericEventTime(TypedDict):
Expand Down Expand Up @@ -118,7 +118,8 @@ class Airport(TypedDict):
class AirportPairData(TypedDict):
origin: None | Airport
destination: None | Airport
real: None | str
real: None | Airport
"""Destination airport for diverted"""


### playback and flight list
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4ace02

Please sign in to comment.