Skip to content

Commit 3eba4c4

Browse files
committed
More type error ignore comments
1 parent df6d2cc commit 3eba4c4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

twisted/mysite/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
if DEBUG:
8686
# Add django_browser_reload only in DEBUG mode
87-
INSTALLED_APPS += ["django_browser_reload"]
87+
INSTALLED_APPS += ["django_browser_reload"] # pyright: ignore[reportConstantRedefinition]
8888

8989
MIDDLEWARE = [
9090
"django.middleware.security.SecurityMiddleware",
@@ -101,7 +101,7 @@
101101

102102
if DEBUG:
103103
# Add django_browser_reload middleware only in DEBUG mode
104-
MIDDLEWARE += [
104+
MIDDLEWARE += [ # pyright: ignore[reportConstantRedefinition]
105105
"django_browser_reload.middleware.BrowserReloadMiddleware",
106106
]
107107

twisted/twisted_site/views/admin/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SidebarLink:
1818

1919
# Create your views here.
2020
class AdminView(View):
21-
audit_log: AuditLog
22-
perms: ProfileStaffPermissions | None
21+
audit_log: AuditLog # pyright: ignore[reportUninitializedInstanceVariable]
22+
perms: ProfileStaffPermissions | None # pyright: ignore[reportUninitializedInstanceVariable]
2323

2424
def get_context_data(self, page: str, subpage: str | None = None) -> dict[str, Any]: # pyrefly: ignore[explicit-any]
2525
context: dict[str, Any] = {} # pyrefly: ignore[explicit-any]

0 commit comments

Comments
 (0)