Skip to content

Commit

Permalink
Add missing Pyre mode headers] [batch:21/1522] [shard:38/N]
Browse files Browse the repository at this point in the history
Differential Revision: D68144453
  • Loading branch information
Pyre Bot Jr. authored and facebook-github-bot committed Jan 14, 2025
1 parent 0d5623d commit 315bf69
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/multi_thread_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

"""This example shows how to run PyTorch tarnsform in SPDL Pipeline,
and compares its performance against PyTorch DataLoader.
Expand Down
2 changes: 2 additions & 0 deletions src/spdl/io/_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from collections.abc import Mapping

import spdl.lib
Expand Down
2 changes: 2 additions & 0 deletions src/spdl/source/_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

__all__ = ["IterableWithShuffle"]

from collections.abc import Iterator
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import subprocess
from dataclasses import dataclass

Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/dataloader/dataloader_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import time

from spdl.dataloader import DataLoader
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/dataloader/iterator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from collections.abc import Iterator
from unittest.mock import patch

Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/dataloader/pipeline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import asyncio
import random
import threading
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/dataloader/source_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from collections.abc import Iterable
from pathlib import Path
from tempfile import TemporaryDirectory
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/async_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import time

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/buffer_conversion_refcount_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import gc
import sys

Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/concurrent_audio_decoding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import numpy as np
import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/concurrent_image_decoding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/configs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import pytest
import spdl.io

Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/demuxer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/encoding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from itertools import product
from tempfile import NamedTemporaryFile

Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/frames_clone_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/frames_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import spdl.io


Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/packets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import time

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/streaming_video_decoding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/video_frame_slice_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/zero_copy_bytes_passing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import numpy as np
import pytest
import spdl.io
Expand Down
2 changes: 2 additions & 0 deletions tests/spdl_unittest/io/zip_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import tempfile

import numpy as np
Expand Down

0 comments on commit 315bf69

Please sign in to comment.