From 154612b906923163d06ebcaed8e5fcb74a58aaeb Mon Sep 17 00:00:00 2001 From: Joan Martinez Date: Fri, 9 Feb 2024 11:40:06 +0100 Subject: [PATCH] chore: add license notice to every file Signed-off-by: Joan Martinez --- docarray/__init__.py | 15 +++++++++++ docarray/array/__init__.py | 15 +++++++++++ docarray/array/doc_list/__init__.py | 15 +++++++++++ docarray/array/doc_vec/__init__.py | 15 +++++++++++ docarray/base_doc/__init__.py | 15 +++++++++++ docarray/base_doc/base_node.py | 15 +++++++++++ docarray/base_doc/docarray_response.py | 15 +++++++++++ docarray/base_doc/io/__init__.py | 15 +++++++++++ docarray/base_doc/mixins/__init__.py | 15 +++++++++++ docarray/computation/__init__.py | 15 +++++++++++ docarray/data/__init__.py | 15 +++++++++++ docarray/display/__init__.py | 15 +++++++++++ docarray/display/tensor_display.py | 15 +++++++++++ docarray/documents/__init__.py | 15 +++++++++++ docarray/documents/legacy/__init__.py | 15 +++++++++++ docarray/documents/legacy/legacy_document.py | 15 +++++++++++ docarray/documents/mesh/__init__.py | 15 +++++++++++ docarray/documents/mesh/vertices_and_faces.py | 15 +++++++++++ docarray/documents/point_cloud/__init__.py | 15 +++++++++++ docarray/exceptions/__init__.py | 15 +++++++++++ docarray/exceptions/exceptions.py | 15 +++++++++++ docarray/index/backends/__init__.py | 15 +++++++++++ docarray/proto/__init__.py | 15 +++++++++++ docarray/store/abstract_doc_store.py | 15 +++++++++++ docarray/store/exceptions.py | 15 +++++++++++ docarray/store/file.py | 15 +++++++++++ docarray/typing/abstract_type.py | 15 +++++++++++ docarray/typing/bytes/__init__.py | 15 +++++++++++ docarray/typing/bytes/base_bytes.py | 15 +++++++++++ docarray/typing/id.py | 15 +++++++++++ docarray/typing/proto_register.py | 15 +++++++++++ .../typing/tensor/audio/audio_jax_array.py | 15 +++++++++++ .../tensor/embedding/embedding_mixin.py | 15 +++++++++++ docarray/typing/tensor/embedding/ndarray.py | 15 +++++++++++ .../typing/tensor/image/image_jax_array.py | 15 +++++++++++ .../tensor/image/image_tensorflow_tensor.py | 15 +++++++++++ .../typing/tensor/image/image_torch_tensor.py | 15 +++++++++++ .../typing/tensor/video/video_jax_array.py | 15 +++++++++++ docarray/typing/url/__init__.py | 15 +++++++++++ docarray/typing/url/audio_url.py | 15 +++++++++++ docarray/typing/url/image_url.py | 15 +++++++++++ docarray/typing/url/mimetypes.py | 15 +++++++++++ docarray/typing/url/text_url.py | 15 +++++++++++ docarray/typing/url/url_3d/__init__.py | 15 +++++++++++ docarray/typing/url/url_3d/mesh_url.py | 15 +++++++++++ docarray/typing/url/url_3d/url_3d.py | 15 +++++++++++ docarray/utils/__init__.py | 15 +++++++++++ docarray/utils/_internal/__init__.py | 15 +++++++++++ docarray/utils/_internal/_typing.py | 15 +++++++++++ docarray/utils/_internal/cache.py | 15 +++++++++++ docarray/utils/_internal/progress_bar.py | 15 +++++++++++ docarray/utils/_internal/pydantic.py | 15 +++++++++++ .../_internal/query_language/__init__.py | 15 +++++++++++ .../_internal/query_language/query_parser.py | 15 +++++++++++ docarray/utils/reduce.py | 15 +++++++++++ scripts/add_license.sh | 26 +++++++++++++++++++ scripts/license.txt | 15 +++++++++++ tests/__init__.py | 15 +++++++++++ tests/benchmark_tests/__init__.py | 15 +++++++++++ tests/documentation/__init__.py | 15 +++++++++++ tests/documentation/test_docstring.py | 15 +++++++++++ tests/index/__init__.py | 15 +++++++++++ tests/index/base_classes/__init__.py | 15 +++++++++++ tests/index/conftest.py | 15 +++++++++++ tests/index/elastic/__init__.py | 15 +++++++++++ tests/index/elastic/fixture.py | 15 +++++++++++ tests/index/elastic/v7/__init__.py | 15 +++++++++++ tests/index/epsilla/__init__.py | 15 +++++++++++ tests/index/epsilla/common.py | 15 +++++++++++ tests/index/epsilla/conftest.py | 15 +++++++++++ tests/index/epsilla/fixtures.py | 15 +++++++++++ tests/index/hnswlib/__init__.py | 15 +++++++++++ tests/index/hnswlib/test_filter.py | 15 +++++++++++ tests/index/in_memory/__init__.py | 15 +++++++++++ tests/index/in_memory/test_index_get_del.py | 15 +++++++++++ tests/index/milvus/__init__.py | 15 +++++++++++ tests/index/milvus/fixtures.py | 15 +++++++++++ tests/index/qdrant/__init__.py | 15 +++++++++++ tests/index/qdrant/fixtures.py | 15 +++++++++++ tests/index/redis/__init__.py | 15 +++++++++++ tests/index/redis/fixtures.py | 15 +++++++++++ tests/index/weaviate/__init__.py | 15 +++++++++++ tests/index/weaviate/fixture_weaviate.py | 15 +++++++++++ tests/integrations/__init__.py | 15 +++++++++++ tests/integrations/array/__init__.py | 15 +++++++++++ tests/integrations/array/test_torch_train.py | 15 +++++++++++ tests/integrations/document/__init__.py | 15 +++++++++++ tests/integrations/document/test_proto.py | 15 +++++++++++ tests/integrations/document/test_to_json.py | 15 +++++++++++ .../predefined_document/test_image.py | 15 +++++++++++ .../predefined_document/test_mesh.py | 15 +++++++++++ .../predefined_document/test_point_cloud.py | 15 +++++++++++ .../predefined_document/test_text.py | 15 +++++++++++ tests/integrations/store/__init__.py | 15 +++++++++++ tests/integrations/torch/data/__init__.py | 15 +++++++++++ tests/integrations/typing/__init__.py | 15 +++++++++++ tests/integrations/typing/test_anyurl.py | 15 +++++++++++ tests/integrations/typing/test_embedding.py | 15 +++++++++++ tests/integrations/typing/test_id.py | 15 +++++++++++ tests/integrations/typing/test_image_url.py | 15 +++++++++++ tests/integrations/typing/test_mesh_url.py | 15 +++++++++++ tests/integrations/typing/test_ndarray.py | 15 +++++++++++ .../typing/test_point_cloud_url.py | 15 +++++++++++ .../typing/test_tensors_interop.py | 15 +++++++++++ tests/units/__init__.py | 15 +++++++++++ tests/units/array/__init__.py | 15 +++++++++++ tests/units/array/stack/__init__.py | 15 +++++++++++ tests/units/array/stack/storage/__init__.py | 15 +++++++++++ .../storage/test_array_stack_with_optional.py | 15 +++++++++++ tests/units/array/stack/test_init.py | 15 +++++++++++ tests/units/array/stack/test_proto.py | 15 +++++++++++ tests/units/array/test_array.py | 15 +++++++++++ tests/units/array/test_array_from_to_json.py | 15 +++++++++++ tests/units/array/test_array_proto.py | 15 +++++++++++ tests/units/array/test_array_save_load.py | 15 +++++++++++ tests/units/array/test_batching.py | 15 +++++++++++ tests/units/array/test_generic_array.py | 15 +++++++++++ tests/units/computation_backends/__init__.py | 15 +++++++++++ .../backend_comparisons/__init__.py | 15 +++++++++++ .../backend_comparisons/test_metrics.py | 15 +++++++++++ .../jax_backend/__init__.py | 15 +++++++++++ .../jax_backend/test_basics.py | 15 +++++++++++ .../jax_backend/test_retrieval.py | 15 +++++++++++ .../numpy_backend/__init__.py | 15 +++++++++++ .../numpy_backend/test_basics.py | 15 +++++++++++ .../numpy_backend/test_retrieval.py | 15 +++++++++++ .../tensorflow_backend/__init__.py | 15 +++++++++++ .../tensorflow_backend/test_basics.py | 15 +++++++++++ .../tensorflow_backend/test_retrieval.py | 15 +++++++++++ .../torch_backend/__init__.py | 15 +++++++++++ .../torch_backend/test_basics.py | 15 +++++++++++ .../torch_backend/test_retrieval.py | 15 +++++++++++ tests/units/document/__init__.py | 15 +++++++++++ tests/units/document/proto/__init__.py | 15 +++++++++++ .../document/proto/test_document_proto.py | 15 +++++++++++ .../document/proto/test_proto_based_object.py | 15 +++++++++++ tests/units/document/test_doc_wo_id.py | 15 +++++++++++ tests/units/document/test_docs_operators.py | 15 +++++++++++ tests/units/document/test_from_to_bytes.py | 15 +++++++++++ tests/units/document/test_text_document.py | 15 +++++++++++ tests/units/document/test_to_schema.py | 15 +++++++++++ tests/units/document/test_view.py | 15 +++++++++++ tests/units/test_helper.py | 15 +++++++++++ tests/units/typing/__init__.py | 15 +++++++++++ tests/units/typing/da/__init__.py | 15 +++++++++++ tests/units/typing/da/test_relations.py | 15 +++++++++++ tests/units/typing/tensor/__init__.py | 15 +++++++++++ .../units/typing/tensor/test_audio_tensor.py | 15 +++++++++++ .../units/typing/tensor/test_cross_backend.py | 15 +++++++++++ tests/units/typing/tensor/test_embedding.py | 15 +++++++++++ .../units/typing/tensor/test_image_tensor.py | 15 +++++++++++ tests/units/typing/tensor/test_np_ops.py | 15 +++++++++++ tests/units/typing/tensor/test_torch_ops.py | 15 +++++++++++ .../units/typing/tensor/test_video_tensor.py | 15 +++++++++++ tests/units/typing/test_bytes.py | 15 +++++++++++ tests/units/typing/test_id.py | 15 +++++++++++ tests/units/typing/url/__init__.py | 15 +++++++++++ tests/units/typing/url/test_image_url.py | 15 +++++++++++ tests/units/typing/url/test_mesh_url.py | 15 +++++++++++ .../units/typing/url/test_point_cloud_url.py | 15 +++++++++++ tests/units/util/__init__.py | 15 +++++++++++ tests/units/util/query_language/__init__.py | 15 +++++++++++ .../units/util/query_language/test_lookup.py | 15 +++++++++++ tests/units/util/test_find.py | 15 +++++++++++ tests/units/util/test_map.py | 15 +++++++++++ tests/units/util/test_typing.py | 15 +++++++++++ 166 files changed, 2501 insertions(+) create mode 100755 scripts/add_license.sh create mode 100644 scripts/license.txt diff --git a/docarray/__init__.py b/docarray/__init__.py index a800d210626..6ce3f9eb90f 100644 --- a/docarray/__init__.py +++ b/docarray/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. __version__ = '0.40.1' import logging diff --git a/docarray/array/__init__.py b/docarray/array/__init__.py index 16e1274c1e3..8fc423c13f0 100644 --- a/docarray/array/__init__.py +++ b/docarray/array/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.array.any_array import AnyDocArray from docarray.array.doc_list.doc_list import DocList from docarray.array.doc_vec.doc_vec import DocVec diff --git a/docarray/array/doc_list/__init__.py b/docarray/array/doc_list/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/array/doc_list/__init__.py +++ b/docarray/array/doc_list/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/array/doc_vec/__init__.py b/docarray/array/doc_vec/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/array/doc_vec/__init__.py +++ b/docarray/array/doc_vec/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/base_doc/__init__.py b/docarray/base_doc/__init__.py index 47e01c1c662..1c3a3cf7924 100644 --- a/docarray/base_doc/__init__.py +++ b/docarray/base_doc/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.base_doc.any_doc import AnyDoc from docarray.base_doc.base_node import BaseNode from docarray.base_doc.doc import BaseDoc diff --git a/docarray/base_doc/base_node.py b/docarray/base_doc/base_node.py index 7cbb76c9e98..16a64bea599 100644 --- a/docarray/base_doc/base_node.py +++ b/docarray/base_doc/base_node.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import ABC, abstractmethod from typing import TYPE_CHECKING, TypeVar, Optional, Type diff --git a/docarray/base_doc/docarray_response.py b/docarray/base_doc/docarray_response.py index a9f807ab6b4..8f00ffdbf56 100644 --- a/docarray/base_doc/docarray_response.py +++ b/docarray/base_doc/docarray_response.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING, Any from docarray.base_doc.io.json import orjson_dumps diff --git a/docarray/base_doc/io/__init__.py b/docarray/base_doc/io/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/base_doc/io/__init__.py +++ b/docarray/base_doc/io/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/base_doc/mixins/__init__.py b/docarray/base_doc/mixins/__init__.py index bfa675df9a1..dcf5766aa25 100644 --- a/docarray/base_doc/mixins/__init__.py +++ b/docarray/base_doc/mixins/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.base_doc.mixins.io import IOMixin from docarray.base_doc.mixins.update import UpdateMixin diff --git a/docarray/computation/__init__.py b/docarray/computation/__init__.py index 570505565c6..06ddb5ea287 100644 --- a/docarray/computation/__init__.py +++ b/docarray/computation/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.computation.abstract_comp_backend import AbstractComputationalBackend __all__ = ['AbstractComputationalBackend'] diff --git a/docarray/data/__init__.py b/docarray/data/__init__.py index 69da35e8c57..1ffabbcbd11 100644 --- a/docarray/data/__init__.py +++ b/docarray/data/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.data.torch_dataset import MultiModalDataset __all__ = ['MultiModalDataset'] diff --git a/docarray/display/__init__.py b/docarray/display/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/display/__init__.py +++ b/docarray/display/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/display/tensor_display.py b/docarray/display/tensor_display.py index 1bf884b518f..c0f41aea6a2 100644 --- a/docarray/display/tensor_display.py +++ b/docarray/display/tensor_display.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: diff --git a/docarray/documents/__init__.py b/docarray/documents/__init__.py index aba89edd172..5de8a33597f 100644 --- a/docarray/documents/__init__.py +++ b/docarray/documents/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents.audio import AudioDoc from docarray.documents.image import ImageDoc from docarray.documents.mesh import Mesh3D, VerticesAndFaces diff --git a/docarray/documents/legacy/__init__.py b/docarray/documents/legacy/__init__.py index 61cb9c485c1..0e092cf6c57 100644 --- a/docarray/documents/legacy/__init__.py +++ b/docarray/documents/legacy/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents.legacy.legacy_document import LegacyDocument __all__ = ['LegacyDocument'] diff --git a/docarray/documents/legacy/legacy_document.py b/docarray/documents/legacy/legacy_document.py index 52b4b08740e..dc77f10d0b4 100644 --- a/docarray/documents/legacy/legacy_document.py +++ b/docarray/documents/legacy/legacy_document.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from __future__ import annotations from typing import Any, Dict, Optional diff --git a/docarray/documents/mesh/__init__.py b/docarray/documents/mesh/__init__.py index 15ba1fdab10..a07ac3fc6f8 100644 --- a/docarray/documents/mesh/__init__.py +++ b/docarray/documents/mesh/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents.mesh.mesh_3d import Mesh3D from docarray.documents.mesh.vertices_and_faces import VerticesAndFaces diff --git a/docarray/documents/mesh/vertices_and_faces.py b/docarray/documents/mesh/vertices_and_faces.py index e90a6fabc2f..05cfea86e34 100644 --- a/docarray/documents/mesh/vertices_and_faces.py +++ b/docarray/documents/mesh/vertices_and_faces.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING, Any, Type, TypeVar, Union from docarray.base_doc import BaseDoc diff --git a/docarray/documents/point_cloud/__init__.py b/docarray/documents/point_cloud/__init__.py index 27a9defeb87..67013333e17 100644 --- a/docarray/documents/point_cloud/__init__.py +++ b/docarray/documents/point_cloud/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents.point_cloud.point_cloud_3d import PointCloud3D from docarray.documents.point_cloud.points_and_colors import PointsAndColors diff --git a/docarray/exceptions/__init__.py b/docarray/exceptions/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/exceptions/__init__.py +++ b/docarray/exceptions/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/exceptions/exceptions.py b/docarray/exceptions/exceptions.py index ef659901b36..c6d975cd1ed 100644 --- a/docarray/exceptions/exceptions.py +++ b/docarray/exceptions/exceptions.py @@ -1,2 +1,17 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. class UnusableObjectError(NotImplementedError): ... diff --git a/docarray/index/backends/__init__.py b/docarray/index/backends/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/index/backends/__init__.py +++ b/docarray/index/backends/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/proto/__init__.py b/docarray/proto/__init__.py index b7cff253d8b..faa1cdffe8f 100644 --- a/docarray/proto/__init__.py +++ b/docarray/proto/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING from docarray.utils._internal.misc import import_library diff --git a/docarray/store/abstract_doc_store.py b/docarray/store/abstract_doc_store.py index 76610aa2ce4..e95c014d38e 100644 --- a/docarray/store/abstract_doc_store.py +++ b/docarray/store/abstract_doc_store.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import ABC, abstractmethod from typing import Dict, Iterator, List, Type diff --git a/docarray/store/exceptions.py b/docarray/store/exceptions.py index 9caf0d8a167..52809621337 100644 --- a/docarray/store/exceptions.py +++ b/docarray/store/exceptions.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. class ConcurrentPushException(Exception): """Exception raised when a concurrent push is detected.""" diff --git a/docarray/store/file.py b/docarray/store/file.py index 9b37c15dfc8..b728b21460d 100644 --- a/docarray/store/file.py +++ b/docarray/store/file.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging from pathlib import Path from typing import Dict, Iterator, List, Type, TypeVar diff --git a/docarray/typing/abstract_type.py b/docarray/typing/abstract_type.py index 4f0bf513dc4..2aa009d4e6a 100644 --- a/docarray/typing/abstract_type.py +++ b/docarray/typing/abstract_type.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import abstractmethod from typing import TYPE_CHECKING, Any, Type, TypeVar diff --git a/docarray/typing/bytes/__init__.py b/docarray/typing/bytes/__init__.py index 2cf8524bcc0..015f3243759 100644 --- a/docarray/typing/bytes/__init__.py +++ b/docarray/typing/bytes/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.typing.bytes.audio_bytes import AudioBytes from docarray.typing.bytes.image_bytes import ImageBytes from docarray.typing.bytes.video_bytes import VideoBytes diff --git a/docarray/typing/bytes/base_bytes.py b/docarray/typing/bytes/base_bytes.py index fefb5b05a45..4c336ae6940 100644 --- a/docarray/typing/bytes/base_bytes.py +++ b/docarray/typing/bytes/base_bytes.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import abstractmethod from typing import TYPE_CHECKING, Any, Type, TypeVar diff --git a/docarray/typing/id.py b/docarray/typing/id.py index e71b61edb0d..c06951eaef7 100644 --- a/docarray/typing/id.py +++ b/docarray/typing/id.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING, Any, Type, TypeVar, Union from uuid import UUID diff --git a/docarray/typing/proto_register.py b/docarray/typing/proto_register.py index 700fe744ad8..0839039f4e6 100644 --- a/docarray/typing/proto_register.py +++ b/docarray/typing/proto_register.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Callable, Dict, Type, TypeVar from docarray.typing.abstract_type import AbstractType diff --git a/docarray/typing/tensor/audio/audio_jax_array.py b/docarray/typing/tensor/audio/audio_jax_array.py index 793fd627214..50ce9c97438 100644 --- a/docarray/typing/tensor/audio/audio_jax_array.py +++ b/docarray/typing/tensor/audio/audio_jax_array.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TypeVar from docarray.typing.proto_register import _register_proto diff --git a/docarray/typing/tensor/embedding/embedding_mixin.py b/docarray/typing/tensor/embedding/embedding_mixin.py index a80cfc3d666..1310fae15ca 100644 --- a/docarray/typing/tensor/embedding/embedding_mixin.py +++ b/docarray/typing/tensor/embedding/embedding_mixin.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import ABC from typing import Any, Optional, Tuple, Type diff --git a/docarray/typing/tensor/embedding/ndarray.py b/docarray/typing/tensor/embedding/ndarray.py index 631268e7c26..a320eb6942d 100644 --- a/docarray/typing/tensor/embedding/ndarray.py +++ b/docarray/typing/tensor/embedding/ndarray.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.typing.proto_register import _register_proto from docarray.typing.tensor.embedding.embedding_mixin import EmbeddingMixin from docarray.typing.tensor.ndarray import NdArray diff --git a/docarray/typing/tensor/image/image_jax_array.py b/docarray/typing/tensor/image/image_jax_array.py index 8fabf91ac24..a814f2f7dae 100644 --- a/docarray/typing/tensor/image/image_jax_array.py +++ b/docarray/typing/tensor/image/image_jax_array.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.typing.proto_register import _register_proto from docarray.typing.tensor.image.abstract_image_tensor import AbstractImageTensor from docarray.typing.tensor.jaxarray import JaxArray, metaJax diff --git a/docarray/typing/tensor/image/image_tensorflow_tensor.py b/docarray/typing/tensor/image/image_tensorflow_tensor.py index f373f45b30e..2120df5626a 100644 --- a/docarray/typing/tensor/image/image_tensorflow_tensor.py +++ b/docarray/typing/tensor/image/image_tensorflow_tensor.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TypeVar from docarray.typing.proto_register import _register_proto diff --git a/docarray/typing/tensor/image/image_torch_tensor.py b/docarray/typing/tensor/image/image_torch_tensor.py index 7f2c3afc0d2..7edc5aaa5fa 100644 --- a/docarray/typing/tensor/image/image_torch_tensor.py +++ b/docarray/typing/tensor/image/image_torch_tensor.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TypeVar from docarray.typing.proto_register import _register_proto diff --git a/docarray/typing/tensor/video/video_jax_array.py b/docarray/typing/tensor/video/video_jax_array.py index 5b060e49246..07aecea7439 100644 --- a/docarray/typing/tensor/video/video_jax_array.py +++ b/docarray/typing/tensor/video/video_jax_array.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING, Any, List, Tuple, Type, TypeVar, Union import numpy as np diff --git a/docarray/typing/url/__init__.py b/docarray/typing/url/__init__.py index b1a4416744d..f0483c43285 100644 --- a/docarray/typing/url/__init__.py +++ b/docarray/typing/url/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.typing.url.any_url import AnyUrl from docarray.typing.url.audio_url import AudioUrl from docarray.typing.url.image_url import ImageUrl diff --git a/docarray/typing/url/audio_url.py b/docarray/typing/url/audio_url.py index e6938388412..95700681b84 100644 --- a/docarray/typing/url/audio_url.py +++ b/docarray/typing/url/audio_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import warnings from typing import List, Optional, Tuple, TypeVar diff --git a/docarray/typing/url/image_url.py b/docarray/typing/url/image_url.py index ffbeef15098..8c6691a7ff6 100644 --- a/docarray/typing/url/image_url.py +++ b/docarray/typing/url/image_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import warnings from typing import TYPE_CHECKING, List, Optional, Tuple, TypeVar diff --git a/docarray/typing/url/mimetypes.py b/docarray/typing/url/mimetypes.py index 824f1c3150e..828a47b962b 100644 --- a/docarray/typing/url/mimetypes.py +++ b/docarray/typing/url/mimetypes.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. TEXT_MIMETYPE = 'text' AUDIO_MIMETYPE = 'audio' IMAGE_MIMETYPE = 'image' diff --git a/docarray/typing/url/text_url.py b/docarray/typing/url/text_url.py index 8e7f40cfda7..24ae669ce69 100644 --- a/docarray/typing/url/text_url.py +++ b/docarray/typing/url/text_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List, Optional, TypeVar from docarray.typing.proto_register import _register_proto diff --git a/docarray/typing/url/url_3d/__init__.py b/docarray/typing/url/url_3d/__init__.py index a8aaf02e49d..58717ab952f 100644 --- a/docarray/typing/url/url_3d/__init__.py +++ b/docarray/typing/url/url_3d/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.typing.url.url_3d.mesh_url import Mesh3DUrl from docarray.typing.url.url_3d.point_cloud_url import PointCloud3DUrl diff --git a/docarray/typing/url/url_3d/mesh_url.py b/docarray/typing/url/url_3d/mesh_url.py index 84645e8ae42..094a6c4af2a 100644 --- a/docarray/typing/url/url_3d/mesh_url.py +++ b/docarray/typing/url/url_3d/mesh_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import TYPE_CHECKING, Any, Dict, List, Optional, TypeVar import numpy as np diff --git a/docarray/typing/url/url_3d/url_3d.py b/docarray/typing/url/url_3d/url_3d.py index 78120d144cd..0f93e2bc00d 100644 --- a/docarray/typing/url/url_3d/url_3d.py +++ b/docarray/typing/url/url_3d/url_3d.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from abc import ABC from typing import TYPE_CHECKING, Any, Dict, Optional, TypeVar, Union diff --git a/docarray/utils/__init__.py b/docarray/utils/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/utils/__init__.py +++ b/docarray/utils/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/utils/_internal/__init__.py b/docarray/utils/_internal/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/utils/_internal/__init__.py +++ b/docarray/utils/_internal/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/utils/_internal/_typing.py b/docarray/utils/_internal/_typing.py index f329a2e3b76..83e350a0602 100644 --- a/docarray/utils/_internal/_typing.py +++ b/docarray/utils/_internal/_typing.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Any, ForwardRef, Optional, Union from typing_extensions import get_origin diff --git a/docarray/utils/_internal/cache.py b/docarray/utils/_internal/cache.py index 249c4f9d179..83ffcf4b9c8 100644 --- a/docarray/utils/_internal/cache.py +++ b/docarray/utils/_internal/cache.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os from functools import lru_cache from pathlib import Path diff --git a/docarray/utils/_internal/progress_bar.py b/docarray/utils/_internal/progress_bar.py index 4750c509a1a..b5460c31148 100644 --- a/docarray/utils/_internal/progress_bar.py +++ b/docarray/utils/_internal/progress_bar.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional from rich.progress import ( diff --git a/docarray/utils/_internal/pydantic.py b/docarray/utils/_internal/pydantic.py index 42d99618d73..d8e28df3b56 100644 --- a/docarray/utils/_internal/pydantic.py +++ b/docarray/utils/_internal/pydantic.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pydantic is_pydantic_v2 = pydantic.__version__.startswith('2.') diff --git a/docarray/utils/_internal/query_language/__init__.py b/docarray/utils/_internal/query_language/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/docarray/utils/_internal/query_language/__init__.py +++ b/docarray/utils/_internal/query_language/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/docarray/utils/_internal/query_language/query_parser.py b/docarray/utils/_internal/query_language/query_parser.py index b635d296d8e..8656fbd8406 100644 --- a/docarray/utils/_internal/query_language/query_parser.py +++ b/docarray/utils/_internal/query_language/query_parser.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Any, Dict, List, Optional, Union from docarray.utils._internal.query_language.lookup import ( diff --git a/docarray/utils/reduce.py b/docarray/utils/reduce.py index 73e357d4978..04433252e53 100644 --- a/docarray/utils/reduce.py +++ b/docarray/utils/reduce.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. __all__ = ['reduce', 'reduce_all'] from typing import Dict, List, Optional diff --git a/scripts/add_license.sh b/scripts/add_license.sh new file mode 100755 index 00000000000..d63b38f5602 --- /dev/null +++ b/scripts/add_license.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +LICENSE_TEXT=$(cat scripts/license.txt) # Replace 'license.txt' with the actual path to your license file + +# Iterate through all Python files +find docarray -name "*.py" -type f | while read -r file; do + # Check if the license text is already in the file + if ! grep -qF "$LICENSE_TEXT" "$file"; then + # Prepend license notice to the file + { echo "$LICENSE_TEXT"; cat "$file"; } > tmpfile && mv tmpfile "$file" + else + echo "License already present in $file" + fi +done + + +# Iterate through all Python files +find tests -name "*.py" -type f | while read -r file; do + # Check if the license text is already in the file + if ! grep -qF "$LICENSE_TEXT" "$file"; then + # Prepend license notice to the file + { echo "$LICENSE_TEXT"; cat "$file"; } > tmpfile && mv tmpfile "$file" + else + echo "License already present in $file" + fi +done diff --git a/scripts/license.txt b/scripts/license.txt new file mode 100644 index 00000000000..0bc4fc5d008 --- /dev/null +++ b/scripts/license.txt @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/__init__.py b/tests/__init__.py index ec6d936c1d6..88968b59f48 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from pathlib import Path REPO_ROOT_DIR = Path(__file__).parent.parent.absolute() diff --git a/tests/benchmark_tests/__init__.py b/tests/benchmark_tests/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/benchmark_tests/__init__.py +++ b/tests/benchmark_tests/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/documentation/__init__.py b/tests/documentation/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/documentation/__init__.py +++ b/tests/documentation/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/documentation/test_docstring.py b/tests/documentation/test_docstring.py index 9bb6e01aeb2..f1d9718e6df 100644 --- a/tests/documentation/test_docstring.py +++ b/tests/documentation/test_docstring.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ this test check the docstring of all of our public API. It does it by checking the `__all__` of each of our namespace. diff --git a/tests/index/__init__.py b/tests/index/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/__init__.py +++ b/tests/index/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/base_classes/__init__.py b/tests/index/base_classes/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/base_classes/__init__.py +++ b/tests/index/base_classes/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/conftest.py b/tests/index/conftest.py index 497a740ae43..f54927e3b70 100644 --- a/tests/index/conftest.py +++ b/tests/index/conftest.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest import logging diff --git a/tests/index/elastic/__init__.py b/tests/index/elastic/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/elastic/__init__.py +++ b/tests/index/elastic/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/elastic/fixture.py b/tests/index/elastic/fixture.py index ef7766acd0c..d81a91c8931 100644 --- a/tests/index/elastic/fixture.py +++ b/tests/index/elastic/fixture.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import time import uuid diff --git a/tests/index/elastic/v7/__init__.py b/tests/index/elastic/v7/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/elastic/v7/__init__.py +++ b/tests/index/elastic/v7/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/epsilla/__init__.py b/tests/index/epsilla/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/epsilla/__init__.py +++ b/tests/index/epsilla/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/epsilla/common.py b/tests/index/epsilla/common.py index 4dc0d023362..0310b4a41c1 100644 --- a/tests/index/epsilla/common.py +++ b/tests/index/epsilla/common.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. epsilla_config = { "protocol": 'http', "host": 'localhost', diff --git a/tests/index/epsilla/conftest.py b/tests/index/epsilla/conftest.py index 8339a4de997..31cd84dfde4 100644 --- a/tests/index/epsilla/conftest.py +++ b/tests/index/epsilla/conftest.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import random import string diff --git a/tests/index/epsilla/fixtures.py b/tests/index/epsilla/fixtures.py index 260fdf54f8b..9e044271197 100644 --- a/tests/index/epsilla/fixtures.py +++ b/tests/index/epsilla/fixtures.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import time diff --git a/tests/index/hnswlib/__init__.py b/tests/index/hnswlib/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/hnswlib/__init__.py +++ b/tests/index/hnswlib/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/hnswlib/test_filter.py b/tests/index/hnswlib/test_filter.py index 84633224cac..3b2397530ba 100644 --- a/tests/index/hnswlib/test_filter.py +++ b/tests/index/hnswlib/test_filter.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest diff --git a/tests/index/in_memory/__init__.py b/tests/index/in_memory/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/in_memory/__init__.py +++ b/tests/index/in_memory/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/in_memory/test_index_get_del.py b/tests/index/in_memory/test_index_get_del.py index 185579c154d..c9471a053ef 100644 --- a/tests/index/in_memory/test_index_get_del.py +++ b/tests/index/in_memory/test_index_get_del.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc, DocList diff --git a/tests/index/milvus/__init__.py b/tests/index/milvus/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/milvus/__init__.py +++ b/tests/index/milvus/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/milvus/fixtures.py b/tests/index/milvus/fixtures.py index 7a1ffe3dd1c..4e71c9408e0 100644 --- a/tests/index/milvus/fixtures.py +++ b/tests/index/milvus/fixtures.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import string import random diff --git a/tests/index/qdrant/__init__.py b/tests/index/qdrant/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/qdrant/__init__.py +++ b/tests/index/qdrant/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/qdrant/fixtures.py b/tests/index/qdrant/fixtures.py index 77ba67dafe2..cf599fe0cd1 100644 --- a/tests/index/qdrant/fixtures.py +++ b/tests/index/qdrant/fixtures.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import time import uuid diff --git a/tests/index/redis/__init__.py b/tests/index/redis/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/redis/__init__.py +++ b/tests/index/redis/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/redis/fixtures.py b/tests/index/redis/fixtures.py index 42acb2c1b78..a56317894ab 100644 --- a/tests/index/redis/fixtures.py +++ b/tests/index/redis/fixtures.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import time import uuid diff --git a/tests/index/weaviate/__init__.py b/tests/index/weaviate/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/index/weaviate/__init__.py +++ b/tests/index/weaviate/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/index/weaviate/fixture_weaviate.py b/tests/index/weaviate/fixture_weaviate.py index 786a92b2a00..3699673746e 100644 --- a/tests/index/weaviate/fixture_weaviate.py +++ b/tests/index/weaviate/fixture_weaviate.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import time diff --git a/tests/integrations/__init__.py b/tests/integrations/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/integrations/__init__.py +++ b/tests/integrations/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integrations/array/__init__.py b/tests/integrations/array/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/integrations/array/__init__.py +++ b/tests/integrations/array/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integrations/array/test_torch_train.py b/tests/integrations/array/test_torch_train.py index e89ec56870c..61e015f98c4 100644 --- a/tests/integrations/array/test_torch_train.py +++ b/tests/integrations/array/test_torch_train.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional import torch diff --git a/tests/integrations/document/__init__.py b/tests/integrations/document/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/integrations/document/__init__.py +++ b/tests/integrations/document/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integrations/document/test_proto.py b/tests/integrations/document/test_proto.py index add031f066e..1a1bc47115f 100644 --- a/tests/integrations/document/test_proto.py +++ b/tests/integrations/document/test_proto.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/integrations/document/test_to_json.py b/tests/integrations/document/test_to_json.py index 44dcaf00431..66652a89ba4 100644 --- a/tests/integrations/document/test_to_json.py +++ b/tests/integrations/document/test_to_json.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/integrations/predefined_document/test_image.py b/tests/integrations/predefined_document/test_image.py index 45f68696297..e34f98260c2 100644 --- a/tests/integrations/predefined_document/test_image.py +++ b/tests/integrations/predefined_document/test_image.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/integrations/predefined_document/test_mesh.py b/tests/integrations/predefined_document/test_mesh.py index a4e59765469..7897a9767f4 100644 --- a/tests/integrations/predefined_document/test_mesh.py +++ b/tests/integrations/predefined_document/test_mesh.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest from pydantic import parse_obj_as diff --git a/tests/integrations/predefined_document/test_point_cloud.py b/tests/integrations/predefined_document/test_point_cloud.py index b8a75914f26..61de679e248 100644 --- a/tests/integrations/predefined_document/test_point_cloud.py +++ b/tests/integrations/predefined_document/test_point_cloud.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/integrations/predefined_document/test_text.py b/tests/integrations/predefined_document/test_text.py index da5d31092fe..af83ee352aa 100644 --- a/tests/integrations/predefined_document/test_text.py +++ b/tests/integrations/predefined_document/test_text.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from pydantic import parse_obj_as from docarray import BaseDoc diff --git a/tests/integrations/store/__init__.py b/tests/integrations/store/__init__.py index 6dc05e16a11..557858e87e8 100644 --- a/tests/integrations/store/__init__.py +++ b/tests/integrations/store/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import tracemalloc from functools import wraps diff --git a/tests/integrations/torch/data/__init__.py b/tests/integrations/torch/data/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/integrations/torch/data/__init__.py +++ b/tests/integrations/torch/data/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integrations/typing/__init__.py b/tests/integrations/typing/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/integrations/typing/__init__.py +++ b/tests/integrations/typing/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integrations/typing/test_anyurl.py b/tests/integrations/typing/test_anyurl.py index fbd6abd417e..99fb9ec36be 100644 --- a/tests/integrations/typing/test_anyurl.py +++ b/tests/integrations/typing/test_anyurl.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc from docarray.typing import AnyUrl diff --git a/tests/integrations/typing/test_embedding.py b/tests/integrations/typing/test_embedding.py index c3db75d9f57..4967df241f7 100644 --- a/tests/integrations/typing/test_embedding.py +++ b/tests/integrations/typing/test_embedding.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc diff --git a/tests/integrations/typing/test_id.py b/tests/integrations/typing/test_id.py index 9ff724f5b10..f8203d3eca7 100644 --- a/tests/integrations/typing/test_id.py +++ b/tests/integrations/typing/test_id.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc from docarray.typing import ID diff --git a/tests/integrations/typing/test_image_url.py b/tests/integrations/typing/test_image_url.py index 008ea536b63..d71e05ff169 100644 --- a/tests/integrations/typing/test_image_url.py +++ b/tests/integrations/typing/test_image_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc from docarray.typing import ImageUrl diff --git a/tests/integrations/typing/test_mesh_url.py b/tests/integrations/typing/test_mesh_url.py index 50a5eb05699..b7b4d3c4645 100644 --- a/tests/integrations/typing/test_mesh_url.py +++ b/tests/integrations/typing/test_mesh_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc from docarray.typing import Mesh3DUrl diff --git a/tests/integrations/typing/test_ndarray.py b/tests/integrations/typing/test_ndarray.py index 5bdcc95667d..d88406f9604 100644 --- a/tests/integrations/typing/test_ndarray.py +++ b/tests/integrations/typing/test_ndarray.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc diff --git a/tests/integrations/typing/test_point_cloud_url.py b/tests/integrations/typing/test_point_cloud_url.py index 64bc06bb086..f72774bd9f6 100644 --- a/tests/integrations/typing/test_point_cloud_url.py +++ b/tests/integrations/typing/test_point_cloud_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc from docarray.typing import PointCloud3DUrl diff --git a/tests/integrations/typing/test_tensors_interop.py b/tests/integrations/typing/test_tensors_interop.py index 47023dca96a..20b9da3fe4c 100644 --- a/tests/integrations/typing/test_tensors_interop.py +++ b/tests/integrations/typing/test_tensors_interop.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/units/__init__.py b/tests/units/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/__init__.py +++ b/tests/units/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/array/__init__.py b/tests/units/array/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/array/__init__.py +++ b/tests/units/array/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/array/stack/__init__.py b/tests/units/array/stack/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/array/stack/__init__.py +++ b/tests/units/array/stack/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/array/stack/storage/__init__.py b/tests/units/array/stack/storage/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/array/stack/storage/__init__.py +++ b/tests/units/array/stack/storage/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/array/stack/storage/test_array_stack_with_optional.py b/tests/units/array/stack/storage/test_array_stack_with_optional.py index 0175fbbcc2d..182b0178593 100644 --- a/tests/units/array/stack/storage/test_array_stack_with_optional.py +++ b/tests/units/array/stack/storage/test_array_stack_with_optional.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional import numpy as np diff --git a/tests/units/array/stack/test_init.py b/tests/units/array/stack/test_init.py index 6e23835b560..232c9276002 100644 --- a/tests/units/array/stack/test_init.py +++ b/tests/units/array/stack/test_init.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc diff --git a/tests/units/array/stack/test_proto.py b/tests/units/array/stack/test_proto.py index 992315a1020..8c559826b80 100644 --- a/tests/units/array/stack/test_proto.py +++ b/tests/units/array/stack/test_proto.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Dict, Optional, Union import numpy as np diff --git a/tests/units/array/test_array.py b/tests/units/array/test_array.py index 6c2308009cb..1d93fb6b78c 100644 --- a/tests/units/array/test_array.py +++ b/tests/units/array/test_array.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional, TypeVar, Union import numpy as np diff --git a/tests/units/array/test_array_from_to_json.py b/tests/units/array/test_array_from_to_json.py index f257a22ac86..2324652c6d0 100644 --- a/tests/units/array/test_array_from_to_json.py +++ b/tests/units/array/test_array_from_to_json.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional, Dict, List import numpy as np diff --git a/tests/units/array/test_array_proto.py b/tests/units/array/test_array_proto.py index 916412461ed..8b6cc172725 100644 --- a/tests/units/array/test_array_proto.py +++ b/tests/units/array/test_array_proto.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest from typing import Dict, List diff --git a/tests/units/array/test_array_save_load.py b/tests/units/array/test_array_save_load.py index e3dc0bdaa80..b5ee6b616e4 100644 --- a/tests/units/array/test_array_save_load.py +++ b/tests/units/array/test_array_save_load.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/array/test_batching.py b/tests/units/array/test_batching.py index 994d226cc5b..0387b7a2b91 100644 --- a/tests/units/array/test_batching.py +++ b/tests/units/array/test_batching.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest diff --git a/tests/units/array/test_generic_array.py b/tests/units/array/test_generic_array.py index a51789ed81e..92d77d2a405 100644 --- a/tests/units/array/test_generic_array.py +++ b/tests/units/array/test_generic_array.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc, DocList from docarray.base_doc import AnyDoc diff --git a/tests/units/computation_backends/__init__.py b/tests/units/computation_backends/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/__init__.py +++ b/tests/units/computation_backends/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/backend_comparisons/__init__.py b/tests/units/computation_backends/backend_comparisons/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/backend_comparisons/__init__.py +++ b/tests/units/computation_backends/backend_comparisons/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/backend_comparisons/test_metrics.py b/tests/units/computation_backends/backend_comparisons/test_metrics.py index 2db6df3eba8..f899bc44d39 100644 --- a/tests/units/computation_backends/backend_comparisons/test_metrics.py +++ b/tests/units/computation_backends/backend_comparisons/test_metrics.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from docarray.computation.numpy_backend import NumpyCompBackend diff --git a/tests/units/computation_backends/jax_backend/__init__.py b/tests/units/computation_backends/jax_backend/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/jax_backend/__init__.py +++ b/tests/units/computation_backends/jax_backend/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/jax_backend/test_basics.py b/tests/units/computation_backends/jax_backend/test_basics.py index 1b36c39276c..db064430c9b 100644 --- a/tests/units/computation_backends/jax_backend/test_basics.py +++ b/tests/units/computation_backends/jax_backend/test_basics.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest from docarray.utils._internal.misc import is_jax_available diff --git a/tests/units/computation_backends/jax_backend/test_retrieval.py b/tests/units/computation_backends/jax_backend/test_retrieval.py index 9f8a3afb415..7d827e2d383 100644 --- a/tests/units/computation_backends/jax_backend/test_retrieval.py +++ b/tests/units/computation_backends/jax_backend/test_retrieval.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest from docarray.utils._internal.misc import is_jax_available diff --git a/tests/units/computation_backends/numpy_backend/__init__.py b/tests/units/computation_backends/numpy_backend/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/numpy_backend/__init__.py +++ b/tests/units/computation_backends/numpy_backend/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/numpy_backend/test_basics.py b/tests/units/computation_backends/numpy_backend/test_basics.py index 837e088951e..7ab511db9ad 100644 --- a/tests/units/computation_backends/numpy_backend/test_basics.py +++ b/tests/units/computation_backends/numpy_backend/test_basics.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest from pydantic import parse_obj_as diff --git a/tests/units/computation_backends/numpy_backend/test_retrieval.py b/tests/units/computation_backends/numpy_backend/test_retrieval.py index a00f254508c..5fa693dde61 100644 --- a/tests/units/computation_backends/numpy_backend/test_retrieval.py +++ b/tests/units/computation_backends/numpy_backend/test_retrieval.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray.computation.numpy_backend import NumpyCompBackend diff --git a/tests/units/computation_backends/tensorflow_backend/__init__.py b/tests/units/computation_backends/tensorflow_backend/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/tensorflow_backend/__init__.py +++ b/tests/units/computation_backends/tensorflow_backend/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/tensorflow_backend/test_basics.py b/tests/units/computation_backends/tensorflow_backend/test_basics.py index ae5f9b44264..6747eecb87e 100644 --- a/tests/units/computation_backends/tensorflow_backend/test_basics.py +++ b/tests/units/computation_backends/tensorflow_backend/test_basics.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest diff --git a/tests/units/computation_backends/tensorflow_backend/test_retrieval.py b/tests/units/computation_backends/tensorflow_backend/test_retrieval.py index 283d7f8b44a..f4d40e7a317 100644 --- a/tests/units/computation_backends/tensorflow_backend/test_retrieval.py +++ b/tests/units/computation_backends/tensorflow_backend/test_retrieval.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest from docarray.utils._internal.misc import is_tf_available diff --git a/tests/units/computation_backends/torch_backend/__init__.py b/tests/units/computation_backends/torch_backend/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/computation_backends/torch_backend/__init__.py +++ b/tests/units/computation_backends/torch_backend/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/computation_backends/torch_backend/test_basics.py b/tests/units/computation_backends/torch_backend/test_basics.py index 925846e2b0c..b0b98980b7e 100644 --- a/tests/units/computation_backends/torch_backend/test_basics.py +++ b/tests/units/computation_backends/torch_backend/test_basics.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/units/computation_backends/torch_backend/test_retrieval.py b/tests/units/computation_backends/torch_backend/test_retrieval.py index 2e3a1833ff0..56fc63afc18 100644 --- a/tests/units/computation_backends/torch_backend/test_retrieval.py +++ b/tests/units/computation_backends/torch_backend/test_retrieval.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from docarray.computation.torch_backend import TorchCompBackend diff --git a/tests/units/document/__init__.py b/tests/units/document/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/document/__init__.py +++ b/tests/units/document/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/document/proto/__init__.py b/tests/units/document/proto/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/document/proto/__init__.py +++ b/tests/units/document/proto/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/document/proto/test_document_proto.py b/tests/units/document/proto/test_document_proto.py index 5d8920a0a69..0fc16482c6d 100644 --- a/tests/units/document/proto/test_document_proto.py +++ b/tests/units/document/proto/test_document_proto.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Dict, List, Optional, Set, Tuple import numpy as np diff --git a/tests/units/document/proto/test_proto_based_object.py b/tests/units/document/proto/test_proto_based_object.py index f36fade67dc..69849dc99f6 100644 --- a/tests/units/document/proto/test_proto_based_object.py +++ b/tests/units/document/proto/test_proto_based_object.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest diff --git a/tests/units/document/test_doc_wo_id.py b/tests/units/document/test_doc_wo_id.py index 78172a03872..ffda3ceec4f 100644 --- a/tests/units/document/test_doc_wo_id.py +++ b/tests/units/document/test_doc_wo_id.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import DocList from docarray.base_doc.doc import BaseDocWithoutId diff --git a/tests/units/document/test_docs_operators.py b/tests/units/document/test_docs_operators.py index 3e0e48f1a05..36cfc258811 100644 --- a/tests/units/document/test_docs_operators.py +++ b/tests/units/document/test_docs_operators.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents.text import TextDoc diff --git a/tests/units/document/test_from_to_bytes.py b/tests/units/document/test_from_to_bytes.py index 25917b0aca2..9ee971eb5c5 100644 --- a/tests/units/document/test_from_to_bytes.py +++ b/tests/units/document/test_from_to_bytes.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest from typing import Dict, List diff --git a/tests/units/document/test_text_document.py b/tests/units/document/test_text_document.py index f7c734a4b52..153e2922ead 100644 --- a/tests/units/document/test_text_document.py +++ b/tests/units/document/test_text_document.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray.documents import TextDoc diff --git a/tests/units/document/test_to_schema.py b/tests/units/document/test_to_schema.py index 91830dab6b9..ad0b7444acd 100644 --- a/tests/units/document/test_to_schema.py +++ b/tests/units/document/test_to_schema.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest diff --git a/tests/units/document/test_view.py b/tests/units/document/test_view.py index c69d53b681d..ecd53a918fa 100644 --- a/tests/units/document/test_view.py +++ b/tests/units/document/test_view.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc diff --git a/tests/units/test_helper.py b/tests/units/test_helper.py index d4da63c7a0e..0c68fe9884d 100644 --- a/tests/units/test_helper.py +++ b/tests/units/test_helper.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional import pytest diff --git a/tests/units/typing/__init__.py b/tests/units/typing/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/typing/__init__.py +++ b/tests/units/typing/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/typing/da/__init__.py b/tests/units/typing/da/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/typing/da/__init__.py +++ b/tests/units/typing/da/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/typing/da/test_relations.py b/tests/units/typing/da/test_relations.py index b00e965c8e7..f583abef2ec 100644 --- a/tests/units/typing/da/test_relations.py +++ b/tests/units/typing/da/test_relations.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from docarray import BaseDoc, DocList diff --git a/tests/units/typing/tensor/__init__.py b/tests/units/typing/tensor/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/typing/tensor/__init__.py +++ b/tests/units/typing/tensor/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/typing/tensor/test_audio_tensor.py b/tests/units/typing/tensor/test_audio_tensor.py index 7d22432836f..45b54caf654 100644 --- a/tests/units/typing/tensor/test_audio_tensor.py +++ b/tests/units/typing/tensor/test_audio_tensor.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/typing/tensor/test_cross_backend.py b/tests/units/typing/tensor/test_cross_backend.py index 702cd678d6f..cd5403c49c7 100644 --- a/tests/units/typing/tensor/test_cross_backend.py +++ b/tests/units/typing/tensor/test_cross_backend.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest from pydantic import parse_obj_as diff --git a/tests/units/typing/tensor/test_embedding.py b/tests/units/typing/tensor/test_embedding.py index f6172c15144..078cb7fddbb 100644 --- a/tests/units/typing/tensor/test_embedding.py +++ b/tests/units/typing/tensor/test_embedding.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import pytest import torch diff --git a/tests/units/typing/tensor/test_image_tensor.py b/tests/units/typing/tensor/test_image_tensor.py index 96bd90a18cf..b05a71403a2 100644 --- a/tests/units/typing/tensor/test_image_tensor.py +++ b/tests/units/typing/tensor/test_image_tensor.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/typing/tensor/test_np_ops.py b/tests/units/typing/tensor/test_np_ops.py index 2398b19fa54..27da03c5aee 100644 --- a/tests/units/typing/tensor/test_np_ops.py +++ b/tests/units/typing/tensor/test_np_ops.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from docarray import BaseDoc diff --git a/tests/units/typing/tensor/test_torch_ops.py b/tests/units/typing/tensor/test_torch_ops.py index 8452d2e2aa8..7e6e4a54f96 100644 --- a/tests/units/typing/tensor/test_torch_ops.py +++ b/tests/units/typing/tensor/test_torch_ops.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import torch from docarray import BaseDoc diff --git a/tests/units/typing/tensor/test_video_tensor.py b/tests/units/typing/tensor/test_video_tensor.py index aa06757b156..7cd44537d18 100644 --- a/tests/units/typing/tensor/test_video_tensor.py +++ b/tests/units/typing/tensor/test_video_tensor.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/typing/test_bytes.py b/tests/units/typing/test_bytes.py index 2d10802b45b..4415f809db5 100644 --- a/tests/units/typing/test_bytes.py +++ b/tests/units/typing/test_bytes.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os from pydantic import parse_obj_as diff --git a/tests/units/typing/test_id.py b/tests/units/typing/test_id.py index 377a28d1935..10eb46694b4 100644 --- a/tests/units/typing/test_id.py +++ b/tests/units/typing/test_id.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from uuid import UUID import pytest diff --git a/tests/units/typing/url/__init__.py b/tests/units/typing/url/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/typing/url/__init__.py +++ b/tests/units/typing/url/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/typing/url/test_image_url.py b/tests/units/typing/url/test_image_url.py index bb9efe7cd36..e5cc246da55 100644 --- a/tests/units/typing/url/test_image_url.py +++ b/tests/units/typing/url/test_image_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import urllib diff --git a/tests/units/typing/url/test_mesh_url.py b/tests/units/typing/url/test_mesh_url.py index 71c354bb435..df807ffa501 100644 --- a/tests/units/typing/url/test_mesh_url.py +++ b/tests/units/typing/url/test_mesh_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/typing/url/test_point_cloud_url.py b/tests/units/typing/url/test_point_cloud_url.py index 88100928329..3deb3e5779a 100644 --- a/tests/units/typing/url/test_point_cloud_url.py +++ b/tests/units/typing/url/test_point_cloud_url.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import numpy as np diff --git a/tests/units/util/__init__.py b/tests/units/util/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/util/__init__.py +++ b/tests/units/util/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/util/query_language/__init__.py b/tests/units/util/query_language/__init__.py index e69de29bb2d..74f8f7582cd 100644 --- a/tests/units/util/query_language/__init__.py +++ b/tests/units/util/query_language/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/units/util/query_language/test_lookup.py b/tests/units/util/query_language/test_lookup.py index dd30f51c8f0..844f5475b9e 100644 --- a/tests/units/util/query_language/test_lookup.py +++ b/tests/units/util/query_language/test_lookup.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest from docarray.utils._internal.query_language.lookup import dunder_get, lookup diff --git a/tests/units/util/test_find.py b/tests/units/util/test_find.py index 2fbe5bf058c..ca7cbe7160a 100644 --- a/tests/units/util/test_find.py +++ b/tests/units/util/test_find.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional, Union import numpy as np diff --git a/tests/units/util/test_map.py b/tests/units/util/test_map.py index c76e3289108..3b9f102d928 100644 --- a/tests/units/util/test_map.py +++ b/tests/units/util/test_map.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Generator, Optional import pytest diff --git a/tests/units/util/test_typing.py b/tests/units/util/test_typing.py index 0307abb9124..f40fde4ab21 100644 --- a/tests/units/util/test_typing.py +++ b/tests/units/util/test_typing.py @@ -1,3 +1,18 @@ +# Licensed to the LF AI & Data foundation under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Dict, List, Optional, Set, Tuple, Union import pytest