Skip to content

Commit

Permalink
Merge pull request #21 from coqui-ai/bug_fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
erogol authored Aug 30, 2021
2 parents e5a1b1a + cd9191f commit 104d870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.12
0.0.13
4 changes: 2 additions & 2 deletions coqpit/coqpit.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def is_dict(arg_type: Any) -> bool:
bool: True if input type is `dict`
"""
try:
return arg_type is dict or arg_type.__origin__ is dict
return arg_type is dict or arg_type is Dict or arg_type.__origin__ is dict
except AttributeError:
return False

Expand Down Expand Up @@ -740,7 +740,7 @@ def init_from_argparse(
if isinstance(args, list):
# If a list was passed in (eg. the second result of `parse_known_args`, run that through argparse first to get a parsed Namespace
parser = cls.init_argparse(cls, arg_prefix=arg_prefix)
args = parser.parse_args(args) # pylint: disable=E1120, E1111
args = parser.parse_args(args) # pylint: disable=E1120, E1111

# Handle list and object attributes with defaults, which can be modified
# directly (eg. --coqpit.list.0.val_a 1), by constructing real objects
Expand Down

0 comments on commit 104d870

Please sign in to comment.