(self)
| 1580 | return lines |
| 1581 | |
| 1582 | async def open(self) -> None: |
| 1583 | if not self._file: |
| 1584 | _disallow_transactions(self._session) |
| 1585 | self._file = await self._files.find_one({"_id": self._file_id}, session=self._session) |
| 1586 | if not self._file: |
| 1587 | raise NoFile( |
| 1588 | f"no file in gridfs collection {self._files!r} with _id {self._file_id!r}" |
| 1589 | ) |
| 1590 | |
| 1591 | def __getattr__(self, name: str) -> Any: |
| 1592 | if _IS_SYNC: |