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