Skip to content

Commit 34d166b

Browse files
QEDadycopybara-github
authored andcommitted
Remove obsolete : ... from all python functions parameters annotations.
PiperOrigin-RevId: 897312424 Change-Id: I62d99afbb1ebc176e599def4dbaa0a88df2ef810
1 parent 4dd4522 commit 34d166b

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/alphagenome/data/junction_data_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _assert_junction_data_equal(
2626
self,
2727
actual: junction_data.JunctionData,
2828
expected: junction_data.JunctionData,
29-
msg: ...,
29+
msg,
3030
) -> None:
3131
pd.testing.assert_frame_equal(actual.metadata, expected.metadata)
3232
np.testing.assert_array_equal(actual.junctions, expected.junctions)

src/alphagenome/models/dna_client_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _generate_prediction_protos(
5555
predictions: dna_client.Output,
5656
requested_outputs: Sequence[dna_model_pb2.OutputType],
5757
bytes_per_chunk: int,
58-
response_proto_type: ...,
58+
response_proto_type,
5959
):
6060
"""Helper to generate proto responses for the provided predictions."""
6161
for output_type in requested_outputs:
@@ -150,7 +150,7 @@ def _generate_variant_protos(
150150
def _generate_variant_scoring_protos(
151151
scores: list[anndata.AnnData],
152152
bytes_per_chunk: int,
153-
response_proto_type: ...,
153+
response_proto_type,
154154
variant: genome.Variant | None = None,
155155
):
156156
"""Helper to generate variant scoring responses for the provided scores."""
@@ -205,7 +205,7 @@ def _generate_variant_scoring_protos(
205205
def _generate_interval_scoring_protos(
206206
scores: list[anndata.AnnData],
207207
bytes_per_chunk: int,
208-
response_proto_type: ...,
208+
response_proto_type,
209209
interval: genome.Interval,
210210
):
211211
"""Helper to generate interval scoring responses for the provided scores."""
@@ -311,7 +311,7 @@ def _assert_output_equal(
311311
self,
312312
actual: dna_client.Output,
313313
expected: dna_client.Output,
314-
msg: ...,
314+
msg,
315315
) -> None:
316316
"""Helper function to compare Output objects."""
317317
self.assertEqual(actual.atac, expected.atac, msg)
@@ -330,7 +330,7 @@ def _assert_track_metadata_equal(
330330
self,
331331
actual: track_data.TrackMetadata,
332332
expected: track_data.TrackMetadata,
333-
msg: ...,
333+
msg,
334334
) -> None:
335335
if actual is not None and expected is not None:
336336
pd.testing.assert_frame_equal(actual, expected)
@@ -341,7 +341,7 @@ def _assert_output_metadata_equal(
341341
self,
342342
actual: dna_client.OutputMetadata,
343343
expected: dna_client.OutputMetadata,
344-
msg: ...,
344+
msg,
345345
) -> None:
346346
"""Helper function to compare OutputMetadata objects."""
347347
self._assert_track_metadata_equal(actual.atac, expected.atac, msg)
@@ -366,7 +366,7 @@ def _assert_track_data_equal(
366366
self,
367367
actual: track_data.TrackData,
368368
expected: track_data.TrackData,
369-
msg: ...,
369+
msg,
370370
) -> None:
371371
"""Helper function to compare TrackData objects."""
372372
pd.testing.assert_frame_equal(actual.metadata, expected.metadata)
@@ -378,7 +378,7 @@ def _assert_junction_data_equal(
378378
self,
379379
actual: junction_data.JunctionData,
380380
expected: junction_data.JunctionData,
381-
msg: ...,
381+
msg,
382382
) -> None:
383383
pd.testing.assert_frame_equal(actual.metadata, expected.metadata)
384384
np.testing.assert_array_equal(actual.junctions, expected.junctions)

src/alphagenome/models/junction_data_utils_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _assert_junction_data_equal(
2727
self,
2828
actual: junction_data.JunctionData,
2929
expected: junction_data.JunctionData,
30-
msg: ...,
30+
msg,
3131
) -> None:
3232
pd.testing.assert_frame_equal(actual.metadata, expected.metadata)
3333
np.testing.assert_array_equal(actual.junctions, expected.junctions)

src/alphagenome/tensor_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _decompress_bytes(
6767

6868

6969
def pack_tensor(
70-
value: ...,
70+
value,
7171
*,
7272
bytes_per_chunk: int = 0,
7373
compression_type: tensor_pb2.CompressionType = (

0 commit comments

Comments
 (0)