diff --git a/src/PIL/_typing.py b/src/PIL/_typing.py index 862c703f8..e679be2d4 100644 --- a/src/PIL/_typing.py +++ b/src/PIL/_typing.py @@ -49,15 +49,10 @@ class SupportsRead(Protocol[_T_co]): StrOrBytesPath = Union[str, bytes, os.PathLike[str], os.PathLike[bytes]] -horizontal_anchors = ("l", "m", "r", "s") -vertical_anchors = ("a", "t", "m", "s", "b", "d") -Anchor = Literal[ - *( - horizontal_anchor + vertical_anchor - for horizontal_anchor in horizontal_anchors - for vertical_anchor in vertical_anchors - ) -] +Anchor = Literal["la", "lt", "lm", "ls", "lb", "ld", + "ma", "mt", "mm", "ms", "mb", "md", + "ra", "rt", "rm", "rs", "rb", "rd", + "sa", "st", "ms", "ss", "sb", "sd"] Align = Literal["left", "center", "right"]