From ccace9fc237de0071753f93bb04a4dcfcb3edec6 Mon Sep 17 00:00:00 2001 From: Joe Numainville Date: Thu, 22 Feb 2024 14:40:06 -0600 Subject: [PATCH] switched to total false --- .../src/deephaven/plot/express/plots/_layer.py | 18 +++++++++--------- .../deephaven/plot/express/plots/subplots.py | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/plugins/plotly-express/src/deephaven/plot/express/plots/_layer.py b/plugins/plotly-express/src/deephaven/plot/express/plots/_layer.py index 1745670b8..eff6f569d 100644 --- a/plugins/plotly-express/src/deephaven/plot/express/plots/_layer.py +++ b/plugins/plotly-express/src/deephaven/plot/express/plots/_layer.py @@ -1,7 +1,7 @@ from __future__ import annotations from functools import partial -from typing import Any, Callable, cast, Tuple, NotRequired +from typing import Any, Callable, cast, Tuple from plotly.graph_objs import Figure @@ -16,14 +16,14 @@ from typing import TypedDict -class LayerSpecDict(TypedDict): - x: NotRequired[list[float] | None] - y: NotRequired[list[float] | None] - xaxis_update: NotRequired[dict[str, Any] | None] - yaxis_update: NotRequired[dict[str, Any] | None] - wipe_layout: NotRequired[bool | None] - matched_xaxis: NotRequired[str | int | None] - matched_yaxis: NotRequired[str | int | None] +class LayerSpecDict(TypedDict, total=False): + x: list[float] | None + y: list[float] | None + xaxis_update: dict[str, Any] | None + yaxis_update: dict[str, Any] | None + wipe_layout: bool | None + matched_xaxis: str | int | None + matched_yaxis: str | int | None def normalize_position( diff --git a/plugins/plotly-express/src/deephaven/plot/express/plots/subplots.py b/plugins/plotly-express/src/deephaven/plot/express/plots/subplots.py index 5b728bd93..1d613ae7a 100644 --- a/plugins/plotly-express/src/deephaven/plot/express/plots/subplots.py +++ b/plugins/plotly-express/src/deephaven/plot/express/plots/subplots.py @@ -1,7 +1,7 @@ from __future__ import annotations import math -from typing import Any, TypeVar, List, cast, TypedDict, NotRequired +from typing import Any, TypeVar, List, cast, TypedDict from plotly.graph_objs import Figure @@ -16,13 +16,13 @@ Grid = List[List[T]] -class SubplotSpecDict(TypedDict): - l: NotRequired[float] - r: NotRequired[float] - t: NotRequired[float] - b: NotRequired[float] - rowspan: NotRequired[int] - colspan: NotRequired[int] +class SubplotSpecDict(TypedDict, total=False): + l: float + r: float + t: float + b: float + rowspan: int + colspan: int def get_shared_key(