diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 7edd33bcd..f39a6760f 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -194,7 +194,7 @@ class FreeTypeFont: size: float = 10, index: int = 0, encoding: str = "", - layout_engine: int = None, + layout_engine: int | None = None, ) -> None: # FIXME: use service provider instead