|
1 | 1 | """ |
2 | 2 | The main implementation of the ``Container`` class of the object store. |
3 | 3 | """ |
| 4 | + |
4 | 5 | # pylint: disable=too-many-lines |
5 | 6 | import dataclasses |
6 | 7 | import io |
@@ -176,14 +177,12 @@ def _get_config_file(self) -> Path: |
176 | 177 | @overload |
177 | 178 | def _get_session( |
178 | 179 | self, create: bool = False, raise_if_missing: Literal[True] = True |
179 | | - ) -> Session: |
180 | | - ... |
| 180 | + ) -> Session: ... |
181 | 181 |
|
182 | 182 | @overload |
183 | 183 | def _get_session( |
184 | 184 | self, create: bool = False, raise_if_missing: Literal[False] = False |
185 | | - ) -> Optional[Session]: |
186 | | - ... |
| 185 | + ) -> Optional[Session]: ... |
187 | 186 |
|
188 | 187 | def _get_session( |
189 | 188 | self, create: bool = False, raise_if_missing: bool = False |
@@ -521,17 +520,15 @@ def _get_objects_stream_meta_generator( |
521 | 520 | hashkeys: Sequence[str], |
522 | 521 | skip_if_missing: bool, |
523 | 522 | with_streams: Literal[False], |
524 | | - ) -> Iterator[Tuple[str, ObjectMeta]]: |
525 | | - ... |
| 523 | + ) -> Iterator[Tuple[str, ObjectMeta]]: ... |
526 | 524 |
|
527 | 525 | @overload |
528 | 526 | def _get_objects_stream_meta_generator( |
529 | 527 | self, |
530 | 528 | hashkeys: Sequence[str], |
531 | 529 | skip_if_missing: bool, |
532 | 530 | with_streams: Literal[True], |
533 | | - ) -> Iterator[Tuple[str, Optional[StreamSeekBytesType], ObjectMeta]]: |
534 | | - ... |
| 531 | + ) -> Iterator[Tuple[str, Optional[StreamSeekBytesType], ObjectMeta]]: ... |
535 | 532 |
|
536 | 533 | def _get_objects_stream_meta_generator( # pylint: disable=too-many-branches,too-many-statements,too-many-locals |
537 | 534 | self, |
@@ -2653,9 +2650,9 @@ def repack_pack( # pylint: disable=too-many-branches,too-many-statements |
2653 | 2650 | source_compressed, |
2654 | 2651 | ) in session.execute(stmt): |
2655 | 2652 | # This is the read handle of the bytes in the pack - it might be |
2656 | | - read_handle: Union[ |
2657 | | - PackedObjectReader, ZlibStreamDecompresser |
2658 | | - ] = PackedObjectReader(read_pack, offset, length) |
| 2653 | + read_handle: Union[PackedObjectReader, ZlibStreamDecompresser] = ( |
| 2654 | + PackedObjectReader(read_pack, offset, length) |
| 2655 | + ) |
2659 | 2656 |
|
2660 | 2657 | # Determine if I should compress or not the destination - this function will |
2661 | 2658 | # try to do it in a cheap way (e.g. if the source is already compressed, will just |
|
0 commit comments