Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 499c44d

Browse files
authored
Make minor correction to type of auth_checkers callbacks (#11253)
1 parent f364345 commit 499c44d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

changelog.d/11253.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make minor correction to the type of `auth_checkers` callbacks.

docs/modules/password_auth_provider_callbacks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ registered by using the Module API's `register_password_auth_provider_callbacks`
1111
_First introduced in Synapse v1.46.0_
1212

1313
```python
14-
auth_checkers: Dict[Tuple[str,Tuple], Callable]
14+
auth_checkers: Dict[Tuple[str, Tuple[str, ...]], Callable]
1515
```
1616

1717
A dict mapping from tuples of a login type identifier (such as `m.login.password`) and a

synapse/handlers/auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,9 @@ def register_password_auth_provider_callbacks(
19891989
self,
19901990
check_3pid_auth: Optional[CHECK_3PID_AUTH_CALLBACK] = None,
19911991
on_logged_out: Optional[ON_LOGGED_OUT_CALLBACK] = None,
1992-
auth_checkers: Optional[Dict[Tuple[str, Tuple], CHECK_AUTH_CALLBACK]] = None,
1992+
auth_checkers: Optional[
1993+
Dict[Tuple[str, Tuple[str, ...]], CHECK_AUTH_CALLBACK]
1994+
] = None,
19931995
) -> None:
19941996
# Register check_3pid_auth callback
19951997
if check_3pid_auth is not None:

0 commit comments

Comments
 (0)