(self, mode="r", *args, **kwargs)
| 172 | return iter(()) |
| 173 | |
| 174 | def open(self, mode="r", *args, **kwargs) -> typing.IO: |
| 175 | data = self.data |
| 176 | if data is None: |
| 177 | raise FileNotFoundError(self._resfs) |
| 178 | |
| 179 | stream = io.BytesIO(data) |
| 180 | |
| 181 | if "b" not in mode: |
| 182 | stream = io.TextIOWrapper(stream, *args, **kwargs) |
| 183 | |
| 184 | return stream |
| 185 | |
| 186 | @functools.cached_property |
| 187 | def data(self) -> bytes | None: |
no outgoing calls
no test coverage detected