Enables dir(bagobj) to list the files in an NpzFile. This also enables tab-completion in an interpreter or IPython.
(self)
| 80 | raise AttributeError(key) from None |
| 81 | |
| 82 | def __dir__(self): |
| 83 | """ |
| 84 | Enables dir(bagobj) to list the files in an NpzFile. |
| 85 | |
| 86 | This also enables tab-completion in an interpreter or IPython. |
| 87 | """ |
| 88 | return list(object.__getattribute__(self, '_obj').keys()) |
| 89 | |
| 90 | |
| 91 | def zipfile_factory(file, *args, **kwargs): |