Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: reactive-python/reactpy-router
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 21543f0e27dd4f9fce0e0470373ca47417800aa8
Choose a base ref
..
head repository: reactive-python/reactpy-router
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a33b8f9eef76117b07b4987766e7080275ebc212
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 idom_router/types.py
8 changes: 4 additions & 4 deletions idom_router/types.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@
from dataclasses import dataclass
from typing import Any, Sequence, TypeVar

from idom.types import Key, Protocol
from typing_extensions import Self
from idom.types import Key
from typing_extensions import Self, Protocol


@dataclass
@@ -17,13 +17,13 @@ def __init__(
self,
path: str,
element: Any | None,
*route_args: Self,
*routes_: Self,
# we need kwarg in order to play nice with the expected dataclass interface
routes: Sequence[Self] = (),
) -> None:
self.path = path
self.element = element
self.routes = (*route_args, *routes)
self.routes = (*routes_, *routes)


R = TypeVar("R", bound=Route, contravariant=True)