From a38d619c709a995334939d9aad0218399c02278d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 25 Sep 2022 23:36:04 +0300 Subject: [PATCH] prettytable: get_X_string return str (#8791) --- stubs/prettytable/prettytable/colortable.pyi | 2 +- stubs/prettytable/prettytable/prettytable.pyi | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stubs/prettytable/prettytable/colortable.pyi b/stubs/prettytable/prettytable/colortable.pyi index 1cb3fc8bb..8d9bfbae0 100644 --- a/stubs/prettytable/prettytable/colortable.pyi +++ b/stubs/prettytable/prettytable/colortable.pyi @@ -40,4 +40,4 @@ class ColorTable(PrettyTable): @theme.setter def theme(self, value: Theme): ... def update_theme(self) -> None: ... - def get_string(self, **kwargs): ... + def get_string(self, **kwargs) -> str: ... diff --git a/stubs/prettytable/prettytable/prettytable.pyi b/stubs/prettytable/prettytable/prettytable.pyi index 17c2bc8d0..3e7d2ae85 100644 --- a/stubs/prettytable/prettytable/prettytable.pyi +++ b/stubs/prettytable/prettytable/prettytable.pyi @@ -210,11 +210,11 @@ class PrettyTable: def clear_rows(self) -> None: ... def clear(self) -> None: ... def copy(self): ... - def get_string(self, **kwargs): ... + def get_string(self, **kwargs) -> str: ... def paginate(self, page_length: int = ..., line_break: str = ..., **kwargs): ... - def get_csv_string(self, **kwargs): ... - def get_json_string(self, **kwargs): ... - def get_html_string(self, **kwargs): ... + def get_csv_string(self, **kwargs) -> str: ... + def get_json_string(self, **kwargs) -> str: ... + def get_html_string(self, **kwargs) -> str: ... def from_csv(fp, field_names: Any | None = ..., **kwargs): ... def from_db_cursor(cursor, **kwargs): ...