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

Use mypy 1.0 #15052

Merged
merged 19 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions synapse/handlers/ui_auth/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def is_enabled(self) -> bool:
Returns:
True if this login type is enabled.
"""
raise NotImplementedError()
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved

async def check_auth(self, authdict: dict, clientip: str) -> Any:
"""Given the authentication dict from the client, attempt to check this step
Expand Down
1 change: 1 addition & 0 deletions synapse/rest/media/v1/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def write_to_consumer(self, consumer: IConsumer) -> Awaitable:
Returns:
Resolves once the response has finished being written
"""
raise NotImplementedError()
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved

def __enter__(self) -> None:
pass
Expand Down
2 changes: 1 addition & 1 deletion synapse/streams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ async def get_new_events(
is_guest: bool,
explicit_room_id: Optional[str] = None,
) -> Tuple[List[R], K]:
...
raise NotImplementedError()
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions tests/handlers/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def check_registration_for_spam(
request_info: Collection[Tuple[str, str]],
auth_provider_id: Optional[str],
) -> RegistrationBehaviour:
pass
return RegistrationBehaviour.ALLOW


class DenyAll(TestSpamChecker):
Expand Down Expand Up @@ -111,7 +111,7 @@ async def check_registration_for_spam(
username: Optional[str],
request_info: Collection[Tuple[str, str]],
) -> RegistrationBehaviour:
pass
return RegistrationBehaviour.ALLOW


class LegacyAllowAll(TestLegacyRegistrationSpamChecker):
Expand Down