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.

mypy: Reenable explicit-override for models.

Anders Kaseorgc03839f42fea
diff --git a/analytics/models.py b/analytics/models.py
index 2ebe57338ad..7a322a47a38 100644
--- a/analytics/models.py
+++ b/analytics/models.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from datetime import datetime
from django.db import models
diff --git a/zerver/models/messages.py b/zerver/models/messages.py
index 65cc5ea9b31..f511eb7d1ee 100644
--- a/zerver/models/messages.py
+++ b/zerver/models/messages.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
import time
from datetime import timedelta
from typing import Any
diff --git a/zerver/models/presence.py b/zerver/models/presence.py
index 63f2923875e..ff419b0bc2e 100644
--- a/zerver/models/presence.py
+++ b/zerver/models/presence.py
@@ -1,7 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
-
from django.db import models
from django.db.models import CASCADE
from django.utils.timezone import now as timezone_now
diff --git a/zerver/models/push_notifications.py b/zerver/models/push_notifications.py
index a21376ad6b1..0aeeb88759e 100644
--- a/zerver/models/push_notifications.py
+++ b/zerver/models/push_notifications.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from django.db import models
from django.db.models import CASCADE
diff --git a/zerver/models/realm_audit_logs.py b/zerver/models/realm_audit_logs.py
index 11464c2e5e9..e00de7ed382 100644
--- a/zerver/models/realm_audit_logs.py
+++ b/zerver/models/realm_audit_logs.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
from django.db.models import CASCADE, Q
diff --git a/zerver/models/scheduled_jobs.py b/zerver/models/scheduled_jobs.py
index 97e8c2b0ce1..dc90d82aca0 100644
--- a/zerver/models/scheduled_jobs.py
+++ b/zerver/models/scheduled_jobs.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from typing import TypedDict
from django.conf import settings
diff --git a/zerver/models/users.py b/zerver/models/users.py
index 73bd0a92096..72d4fe27c78 100644
--- a/zerver/models/users.py
+++ b/zerver/models/users.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from email.headerregistry import Address
from typing import TYPE_CHECKING, Any, Optional
from uuid import uuid4
diff --git a/zilencer/models.py b/zilencer/models.py
index 11740c3d7e2..c2c136c6b11 100644
--- a/zilencer/models.py
+++ b/zilencer/models.py
@@ -1,6 +1,3 @@
-# https://github.com/typeddjango/django-stubs/issues/1698
-# mypy: disable-error-code="explicit-override"
-
from dataclasses import dataclass
from datetime import datetime, timedelta