From 2c962304caac5d2f1381e37c23bc3a2d8cce6db0 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Wed, 17 Apr 2024 13:51:50 +0200 Subject: [PATCH] Testing: Add type annotations to api/importer; #6588 --- lib/rucio/gateway/importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rucio/gateway/importer.py b/lib/rucio/gateway/importer.py index 643a887a6f..30d1c8f9df 100644 --- a/lib/rucio/gateway/importer.py +++ b/lib/rucio/gateway/importer.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Any from rucio.common import exception from rucio.common.schema import validate_schema @@ -26,7 +26,7 @@ @transactional_session -def import_data(data, issuer, vo='def', *, session: "Session"): +def import_data(data: dict[str, Any], issuer: str, vo: str = 'def', *, session: "Session") -> None: """ Import data to add/update/delete records in Rucio.