Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettytable: Fix stubtest errors #8676

Merged
merged 1 commit into from
Sep 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions stubs/prettytable/prettytable/prettytable.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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): ...
Expand Down Expand Up @@ -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: ...
Expand Down