Skip to content

Commit 4996655

Browse files
committed
Manual fix issue flagged by Ruff
1 parent 74fd14f commit 4996655

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drf_excel/renderers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
from collections.abc import Iterable, MutableMapping
33
from tempfile import TemporaryFile
4-
from typing import Dict
54

65
from django.utils.functional import Promise
76
from openpyxl import Workbook
@@ -315,7 +314,7 @@ def _get_label(parent_label, label_sep, obj):
315314

316315
return _header_dict
317316

318-
def _flatten_data(self, data, parent_key="", key_sep=".") -> Dict[str, XLSXField]:
317+
def _flatten_data(self, data, parent_key="", key_sep=".") -> dict[str, XLSXField]:
319318
items = []
320319
for k, v in data.items():
321320
new_key = f"{parent_key}{key_sep}{k}" if parent_key else k

0 commit comments

Comments
 (0)