We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1bc35 commit 7431153Copy full SHA for 7431153
src/datasets/utils/file_utils.py
@@ -856,7 +856,7 @@ def read_with_retries(*args, **kwargs):
856
orig_file_obj = file_obj
857
file_obj = io.RawIOBase()
858
file_obj.read = read_with_retries
859
- file_obj.__getattr__ = lambda _, attr: getattr(orig_file_obj, attr)
+ file_obj.__getattribute__ = lambda _, attr: getattr(orig_file_obj, attr)
860
return file_obj
861
862
0 commit comments