From bc0bb3017f045b6601bac179cccb58fde5e31f04 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sat, 3 Sep 2022 12:30:37 +0100 Subject: [PATCH] `prettytable`: Fix stubtest errors --- stubs/prettytable/prettytable/prettytable.pyi | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/stubs/prettytable/prettytable/prettytable.pyi b/stubs/prettytable/prettytable/prettytable.pyi index 65f9f70efb2d..17c2bc8d02c8 100644 --- a/stubs/prettytable/prettytable/prettytable.pyi +++ b/stubs/prettytable/prettytable/prettytable.pyi @@ -1,7 +1,6 @@ from _typeshed import Incomplete from html.parser import HTMLParser from typing import Any -from typing_extensions import Literal, TypedDict FRAME: int ALL: int @@ -17,8 +16,6 @@ SINGLE_BORDER: int DOUBLE_BORDER: int BASE_ALIGN_VALUE: str -class _EmptyDictionary(TypedDict): ... - class PrettyTable: encoding: Any def __init__(self, field_names: Any | None = ..., **kwargs): ... @@ -202,19 +199,13 @@ class PrettyTable: def xhtml(self, val: bool) -> None: ... @property def rows(self) -> list[Incomplete]: ... - @property - def header_align(self) -> dict[str, str]: ... - @header_align.setter - def header_align(self, val: Literal["l", "c", "r"] | _EmptyDictionary | None) -> None: ... def add_autoindex(self, fieldname: str = ...): ... def get_latex_string(self, **kwargs) -> str: ... def set_style(self, style) -> None: ... def add_rows(self, rows) -> None: ... def add_row(self, row) -> None: ... def del_row(self, row_index) -> None: ... - def add_column( - self, fieldname, column, align: str = ..., valign: str = ..., header_align: Literal["l", "c", "r"] = ... - ) -> None: ... + def add_column(self, fieldname, column, align: str = ..., valign: str = ...) -> None: ... def del_column(self, fieldname) -> None: ... def clear_rows(self) -> None: ... def clear(self) -> None: ...