mergeron 2024.738936.0__py3-none-any.whl → 2024.738940.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mergeron might be problematic. Click here for more details.

@@ -6,6 +6,8 @@ Includes a flexible system of defining cell formats.
6
6
 
7
7
  """
8
8
 
9
+ from __future__ import annotations
10
+
9
11
  from importlib.metadata import version
10
12
 
11
13
  from .. import _PKG_NAME # noqa: TID252
@@ -126,7 +128,7 @@ def matrix_to_sheet(
126
128
  elif isinstance(cell_format, CFmt):
127
129
  _cell_format = (cell_format,) * len(_data_array[0])
128
130
  else:
129
- _cell_format = (CFmt.XL_DEFAULT,) * len(_data_array[0])
131
+ _cell_format = (CFmt.XL_DEFAULT,) * len(_data_array[0]) # type: ignore
130
132
 
131
133
  for _cell_row in range(_row_id, _bottom_row_id):
132
134
  for _cell_col in range(_col_id, _right_column_id):
@@ -222,7 +224,7 @@ def xl_fmt(
222
224
  elif isinstance(_cell_fmt, CFmt):
223
225
  _cell_fmt_dict = _cell_fmt.value
224
226
  else:
225
- _cell_fmt_dict = CFmt.XL_DEFAULT.value
227
+ _cell_fmt_dict = CFmt.XL_DEFAULT.value # type: ignore
226
228
 
227
229
  return _xl_book.add_format(_cell_fmt_dict)
228
230