Skip to content

Commit

Permalink
Fix type hint in convert_to_dict function
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Dec 13, 2023
1 parent 84ef480 commit 106b7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page_xml/xmlPAGE.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_VALID_TYPES = {tuple, list, str, int, float, bool, NoneType}


def convert_to_dict(cfg_node, key_list=[]):
def convert_to_dict(cfg_node, key_list: list = []):
"""Convert a config node to dictionary"""
if not isinstance(cfg_node, CfgNode):
if type(cfg_node) not in _VALID_TYPES:
Expand All @@ -40,7 +40,7 @@ def convert_to_dict(cfg_node, key_list=[]):
class PageData:
"""Class to process PAGE xml files"""

def __init__(self, filepath: Path, logger=None, creator=None):
def __init__(self, filepath: Path, creator=None):
"""
Args:
filepath (string): Path to PAGE-xml file.
Expand Down

0 comments on commit 106b7b4

Please sign in to comment.