prettytable: Fix stubtest errors (#8676)

Fixes #8674. A partial revert of 9e69627501.
This commit is contained in:
Alex Waygood
2022-09-03 21:26:23 +01:00
committed by GitHub
parent 8bc2565d11
commit 483f0ac078

View File

@@ -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: ...