Skip to content

Commit

Permalink
Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 2, 2023
1 parent afdb5a5 commit 5c9d8e4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pytablewriter/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
from itertools import chain
from typing import List
from typing import Any, List

import typepy

Expand All @@ -20,9 +20,7 @@ class TableWriterFactory:
"""

@classmethod
def create_from_file_extension(
cls, file_extension: str, **kwargs: AbstractTableWriter
) -> AbstractTableWriter:
def create_from_file_extension(cls, file_extension: str, **kwargs: Any) -> AbstractTableWriter:
"""
Create a table writer class instance from a file extension.
Supported file extensions are as follows:
Expand Down Expand Up @@ -98,9 +96,7 @@ def create_from_file_extension(
)

@classmethod
def create_from_format_name(
cls, format_name: str, **kwargs: AbstractTableWriter
) -> AbstractTableWriter:
def create_from_format_name(cls, format_name: str, **kwargs: Any) -> AbstractTableWriter:
"""
Create a table writer class instance from a format name.
Supported file format names are as follows:
Expand Down

0 comments on commit 5c9d8e4

Please sign in to comment.