--- a/src/eric7/QScintilla/Exporters/ExporterPDF.py Wed Nov 09 11:32:13 2022 +0100 +++ b/src/eric7/QScintilla/Exporters/ExporterPDF.py Wed Nov 09 15:05:06 2022 +0100 @@ -10,6 +10,8 @@ # This code is a port of the C++ code found in SciTE 1.74 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org> +from dataclasses import dataclass + from PyQt6.Qsci import QsciScintilla from PyQt6.QtGui import QColor, QFontInfo @@ -50,17 +52,14 @@ } +@dataclass class PDFStyle: """ Simple class to store the values of a PDF style. """ - def __init__(self): - """ - Constructor - """ - self.fore = "" - self.font = 0 + fore: str = "" + font: int = 0 class PDFObjectTracker: