diff --git a/CHANGELOG.md b/CHANGELOG.md index 75f9c6b86..d497d2643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,9 @@ in order to get warned about deprecated features used in your code. This can also be enabled programmatically with `warnings.simplefilter('default', DeprecationWarning)`. -## [2.7.1] - not released yet +## [2.7.2] - not released yet + +## [2.7.1] - 2023-03-27 ### Changed - renamed `fonts.FontStyle` to [`fonts.FontFace`](https://pyfpdf.github.io/fpdf2/fpdf/fonts.html#fpdf.fonts.FontFace), and `FPDF.use_font_style` to [`FPDF.use_font_face`](https://pyfpdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.FPDF.FPDF.use_font_face), to avoid confusions with `FPDF.font_style` diff --git a/fpdf/fpdf.py b/fpdf/fpdf.py index c514db9d3..7d860cdf5 100644 --- a/fpdf/fpdf.py +++ b/fpdf/fpdf.py @@ -93,7 +93,7 @@ class Image: ) # Public global variables: -FPDF_VERSION = "2.7.0" +FPDF_VERSION = "2.7.1" PAGE_FORMATS = { "a3": (841.89, 1190.55), "a4": (595.28, 841.89), diff --git a/fpdf/table.py b/fpdf/table.py index adca89e6f..4ca350fe7 100644 --- a/fpdf/table.py +++ b/fpdf/table.py @@ -1,6 +1,6 @@ from dataclasses import dataclass from numbers import Number -from typing import List, Union +from typing import List, Optional, Union from .enums import Align, TableBordersLayout, TableCellFillMode from .fonts import FontFace @@ -345,9 +345,9 @@ def cell( class Cell: "Internal representation of a table cell" text: str - align: Union[str, Align] - style: FontFace - img: str + align: Optional[Union[str, Align]] + style: Optional[FontFace] + img: Optional[str] img_fill_width: bool colspan: int