Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Feb 9, 2024
1 parent 3ba3cf0 commit ba301ad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tabled/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Based functionality for tabled"""


# TODO: Completely change so that
# * routing is more general (not only conditioned on ext, but function of key,
# and possibly data
Expand Down Expand Up @@ -75,7 +74,10 @@ def df_from_data_given_ext(data, ext, mapping=dflt_ext_mapping, **kwargs):
if ext.startswith('.'):
ext = ext[1:]
trans_func = key_func_mapping(
ext, mapping, key=identity, not_found_sentinel=None, # TODO
ext,
mapping,
key=identity,
not_found_sentinel=None, # TODO
)
if trans_func is not None:
return trans_func(data, **kwargs)
Expand Down Expand Up @@ -122,7 +124,9 @@ def get_protocol(url: str):


df_from_data_according_to_ext = partial(
df_from_data_according_to_key, mapping=dflt_ext_mapping, key=get_ext,
df_from_data_according_to_key,
mapping=dflt_ext_mapping,
key=get_ext,
)

# df_from_data_given_ext meant to be equivalent (but more general, using ext_specs) to
Expand Down

0 comments on commit ba301ad

Please sign in to comment.