Skip to content

Commit

Permalink
v2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Mar 27, 2023
1 parent 128bb54 commit 60f5104
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
8 changes: 4 additions & 4 deletions fpdf/table.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 60f5104

Please sign in to comment.