mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
ruff: Fix UP006 Use list instead of List for type annotation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2214b3904
commit
e08a24e47f
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.http import HttpRequest
|
||||
from django.views.debug import SafeExceptionReporterFilter
|
||||
@@ -7,7 +7,7 @@ from typing_extensions import override
|
||||
|
||||
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||
@override
|
||||
def get_post_parameters(self, request: Optional[HttpRequest]) -> Dict[str, Any]:
|
||||
def get_post_parameters(self, request: Optional[HttpRequest]) -> dict[str, Any]:
|
||||
post_data = SafeExceptionReporterFilter.get_post_parameters(self, request)
|
||||
assert isinstance(post_data, dict)
|
||||
filtered_post = post_data.copy()
|
||||
|
||||
Reference in New Issue
Block a user