Skip to content

Commit

Permalink
Merge pull request #186 from ShobanChiddarth/init-annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 1, 2022
2 parents 01e8eb2 + 1470440 commit 4345954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/prettytable/colortable.py
Expand Up @@ -23,7 +23,7 @@ def __init__(
horizontal_color: str = "",
junction_char: str = "+",
junction_color: str = "",
):
) -> None:
self.default_color = Theme.format_code(default_color)
self.vertical_char = vertical_char
self.vertical_color = Theme.format_code(vertical_color)
Expand Down Expand Up @@ -53,7 +53,7 @@ class Themes:


class ColorTable(PrettyTable):
def __init__(self, field_names=None, **kwargs):
def __init__(self, field_names=None, **kwargs) -> None:
super().__init__(field_names=field_names, **kwargs)
# TODO: Validate option

Expand Down
4 changes: 2 additions & 2 deletions src/prettytable/prettytable.py
Expand Up @@ -72,7 +72,7 @@ def _get_size(text):


class PrettyTable:
def __init__(self, field_names=None, **kwargs):
def __init__(self, field_names=None, **kwargs) -> None:
"""Return a new PrettyTable instance
Arguments:
Expand Down Expand Up @@ -2456,7 +2456,7 @@ def from_json(json_string, **kwargs):


class TableHandler(HTMLParser):
def __init__(self, **kwargs):
def __init__(self, **kwargs) -> None:
HTMLParser.__init__(self)
self.kwargs = kwargs
self.tables = []
Expand Down

0 comments on commit 4345954

Please sign in to comment.