Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Fix ANN204 missing return type annotation for __init__.
Anders Kaseorg46955da3a0da
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex e7ca327a5c5..34413a5a2d7 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -622,7 +622,7 @@ class StripeTestCase(ZulipTestCase):free_trial: bool,) -> None:class StripeMock(Mock):- def __init__(self, depth: int = 1):+ def __init__(self, depth: int = 1) -> None:super().__init__(spec=stripe.Card)self.id = "id"self.created = "1000"diff --git a/zerver/lib/cache.py b/zerver/lib/cache.pyindex 90f6902b277..f2f8c3c8b9d 100644--- a/zerver/lib/cache.py+++ b/zerver/lib/cache.py@@ -748,7 +748,7 @@ def flush_submessage(*, instance: "SubMessage", **kwargs: object) -> None:class IgnoreUnhashableLruCacheWrapper(Generic[ParamT, ReturnT]):def __init__(self, function: Callable[ParamT, ReturnT], cached_function: "_lru_cache_wrapper[ReturnT]"- ):+ ) -> None:self.key_prefix = KEY_PREFIXself.function = functionself.cached_function = cached_functiondiff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.pyindex 2e7ec3c6138..506d80cf535 100644--- a/zerver/lib/markdown/__init__.py+++ b/zerver/lib/markdown/__init__.py@@ -386,7 +386,7 @@ class ResultWithFamily(Generic[T]):family: ElementFamilyresult: T- def __init__(self, family: ElementFamily, result: T):+ def __init__(self, family: ElementFamily, result: T) -> None:self.family = familyself.result = result@@ -395,7 +395,7 @@ class ElementPair:parent: Optional["ElementPair"]value: Element- def __init__(self, parent: Optional["ElementPair"], value: Element):+ def __init__(self, parent: Optional["ElementPair"], value: Element) -> None:self.parent = parentself.value = valuediff --git a/zerver/lib/test_fixtures.py b/zerver/lib/test_fixtures.pyindex ff6ac2ec681..e659c748ba4 100644--- a/zerver/lib/test_fixtures.py+++ b/zerver/lib/test_fixtures.py@@ -68,7 +68,7 @@ def migration_paths() -> List[str]:class Database:- def __init__(self, platform: str, database_name: str, settings: str):+ def __init__(self, platform: str, database_name: str, settings: str) -> None:self.database_name = database_nameself.settings = settingsself.digest_name = "db_files_hash_for_" + platform