Skip to content

Commit fd9180c

Browse files
committed
Add type hint
1 parent 1fcf4d9 commit fd9180c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drf_excel/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.conf import settings as django_settings
2-
from openpyxl.cell.cell import ILLEGAL_CHARACTERS_RE
2+
from openpyxl.cell.cell import ILLEGAL_CHARACTERS_RE, Cell
33
from openpyxl.styles import Alignment, Border, Font, PatternFill, Side
44

55
ESCAPE_CHARS = ("=", "-", "+", "@", "\t", "\r", "\n")
@@ -86,7 +86,7 @@ def sanitize_value(value):
8686
return value
8787

8888

89-
def set_cell_style(cell, style: XLSXStyle):
89+
def set_cell_style(cell: Cell, style: XLSXStyle):
9090
# We are not applying the whole style directly, otherwise we cannot override any part of it
9191
if style:
9292
# Only set properties that are provided

0 commit comments

Comments
 (0)