From 042e513a58476d67baf497590e0c44421c8a16cd Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Tue, 14 Jan 2025 15:00:25 +0000 Subject: [PATCH] Run typing on orm/implementation/storage_backend.py --- .pre-commit-config.yaml | 1 - src/aiida/orm/implementation/storage_backend.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77a7478cc4..c0211570f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -122,7 +122,6 @@ repos: src/aiida/manage/external/rmq/launcher.py| src/aiida/manage/tests/main.py| src/aiida/manage/tests/pytest_fixtures.py| - src/aiida/orm/implementation/storage_backend.py| src/aiida/orm/nodes/data/array/bands.py| src/aiida/orm/nodes/data/array/trajectory.py| src/aiida/orm/nodes/data/cif.py| diff --git a/src/aiida/orm/implementation/storage_backend.py b/src/aiida/orm/implementation/storage_backend.py index 6137508f51..7e19a25ca3 100644 --- a/src/aiida/orm/implementation/storage_backend.py +++ b/src/aiida/orm/implementation/storage_backend.py @@ -456,7 +456,7 @@ def get_orm_entities(self, detailed: bool = False) -> dict: """ from aiida.orm import Comment, Computer, Group, Log, Node, QueryBuilder, User - data = {} + data: dict[str, Any] = {} query_user = QueryBuilder(self).append(User, project=['email']) data['Users'] = {'count': query_user.count()}