Skip to content

Commit

Permalink
fix(cli/manual): convert tuple to list
Browse files Browse the repository at this point in the history
  • Loading branch information
Caceresenzo committed Dec 14, 2023
1 parent fdc3786 commit 050fc90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion readwrite/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'readwrite'
__description__ = 'readwrite - Quickly read/write file in common formats'
__version__ = '0.3.3'
__version__ = '0.3.4'
__author__ = 'Enzo CACERES'
__author_email__ = '[email protected]'
__url__ = 'https://github.com/crunchdao/readwrite'
18 changes: 9 additions & 9 deletions readwrite/cli/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ def func(
__handler=handler,
**kwargs
):
params = {
key: None if isinstance(value, tuple) and not len(value) else value
for key, value in kwargs.items()
}
params = {}
for key, value in kwargs.items():
if isinstance(value, tuple):
if len(value):
value = list(value)
else:
value = None

params = {
key: value
for key, value in params.items()
if value is not None
}
if value is not None:
params[key] = value

start_session(
registry,
Expand Down

0 comments on commit 050fc90

Please sign in to comment.