Skip to content

Commit

Permalink
switched to total false
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville committed Feb 22, 2024
1 parent 2118343 commit ccace9f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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(
Expand Down

0 comments on commit ccace9f

Please sign in to comment.