Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Aug 2, 2023
1 parent c0347d0 commit 872c177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ravenpy/config/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse_outputs(run_name: str = None, outputdir: [str, Path] = None):
"""
if outputdir is None:
outputdir = Path.cwd()
elif type(outputdir) == str:
elif isinstance(type(outputdir), str):
outputdir = Path(outputdir)

parser = RAVEN_OUTPUT_PARSERS
Expand Down
2 changes: 1 addition & 1 deletion ravenpy/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def filter_for(kls, attrs, **kwds):
out[field.alias] = attrs[field.alias]
elif key in attrs:
out[key] = attrs[key]
elif type(field.type_) == ModelMetaclass and issubclass(
elif isinstance(field.type_, ModelMetaclass) and issubclass(
field.type_, Command
):
out[key] = filter_for(field.type_, attrs)
Expand Down

0 comments on commit 872c177

Please sign in to comment.