mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
prettytable: Fix stubtest errors (#8676)
Fixes #8674. A partial revert of 9e69627501.
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user