Skip to content

Commit

Permalink
chore: use from __future__ import annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdi7 authored and andrewgy8 committed Jan 18, 2025
1 parent 7bfafaa commit eeca7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tablib/formats/_xlsx.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
""" Tablib - XLSX Support.
"""
from __future__ import annotations

import re
from io import BytesIO
from typing import Optional, Union

from openpyxl.reader.excel import ExcelReader, load_workbook
from openpyxl.styles import Alignment, Font
Expand Down Expand Up @@ -176,7 +176,7 @@ def dset_sheet(cls, dataset, ws, freeze_panes=True, escape=False):

@classmethod
def _adapt_column_width(cls, worksheet,
width: Optional[Union[str, int]]) -> None:
width: str | int | None) -> None:
if width is None:
return

Expand Down

0 comments on commit eeca7e5

Please sign in to comment.