Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Cimon <[email protected]>
  • Loading branch information
andersonhc and Lucas-C committed Oct 24, 2024
1 parent ccdb16a commit 5e436b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,8 @@ def __init__(
but is less compatible with the PDF spec.
"""
self.page = 0 # current page number
self.pages: Dict[int, PDFPage] = (
{}
) # array of PDFPage objects starting at index 1
# array of PDFPage objects starting at index 1:
self.pages: Dict[int, PDFPage] = {}
self.fonts = {} # map font string keys to an instance of CoreFont or TTFFont
# map page numbers to a set of font indices:
self.fonts_used_per_page_number = defaultdict(set)
Expand Down

0 comments on commit 5e436b1

Please sign in to comment.