Skip to content

Commit 7369597

Browse files
author
Ware, Joseph (DLSLtd,RAL,LSCI)
committed
nit: reorder args
1 parent 2b5b001 commit 7369597

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tiled/server/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ def get_session_state():
428428

429429
app.include_router(
430430
get_router(
431-
query_registry,
432-
authenticators,
433-
get_current_principal,
434431
tree,
435-
get_session_state,
432+
query_registry,
436433
serialization_registry,
437434
deserialization_registry,
438435
validation_registry,
436+
authenticators,
437+
get_current_principal,
438+
get_session_state,
439439
),
440440
prefix="/api/v1",
441441
)

tiled/server/router.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ async def route_with_sig(*args, **kwargs):
135135
return inner
136136

137137
def get_router(
138-
query_registry,
139-
authenticators: dict[str, Authenticator],
140-
get_current_principal,
141138
tree: Mapping[str, Any],
142-
get_session_state,
139+
query_registry: QueryRegistry,
143140
serialization_registry: SerializationRegistry,
144141
deserialization_registry: SerializationRegistry,
145142
validation_registry: ValidationRegistry,
143+
authenticators: dict[str, Authenticator],
144+
get_current_principal: Callable[..., Optional[str]],
145+
get_session_state: Callable[..., Optional[dict[str, Any]]],
146146
) -> APIRouter:
147147
router = APIRouter()
148148
SecureEntry = SecureEntryBuilder(tree, get_current_principal, get_session_state)

0 commit comments

Comments
 (0)