Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Fix TCH005 Found empty type-checking block.

Anders Kaseorg2655fe71825e
diff --git a/zerver/tests/test_validators.py b/zerver/tests/test_validators.py
index 9892e92a972..117ae07db9b 100644
--- a/zerver/tests/test_validators.py
+++ b/zerver/tests/test_validators.py
@@ -1,5 +1,5 @@
import re
-from typing import TYPE_CHECKING, Any, Dict, List, Tuple
+from typing import Any, Dict, List, Tuple
from django.conf import settings
from django.core.exceptions import ValidationError
@@ -34,9 +34,6 @@ from zerver.lib.validator import (
if settings.ZILENCER_ENABLED:
pass
-if TYPE_CHECKING:
- pass
-
class ValidatorTestCase(ZulipTestCase):
def test_check_string(self) -> None: