You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Decorator to skip write on empty data sets.# TODO - this cool decorator only works for python >= 3.10# @staticmethoddef_skip_empty(write_like: WriteLikeSignature) ->WriteLikeSignature:
defwrapper(
self: FileIO, data: List[DuneRecord], name: str, ftype: FileType
) ->None:
iflen(data) ==0:
logger.info(f"Nothing to write to {name}... skipping")
returnwrite_like(self, data, name, ftype)
returnwrapper
Unfortunately it fails for any earlier version with
Unfortunately it fails for any earlier version with
Here is an issue about it:
https://bugs.python.org/issue43682
Originally posted by @bh2smith in #37 (comment)
The text was updated successfully, but these errors were encountered: