style: fix imports

This commit is contained in:
dettlaff 2024-06-10 05:52:26 +04:00 committed by Inex Code
parent 4823491e3e
commit 1b91168d06
9 changed files with 17 additions and 3 deletions

View file

@ -1,8 +1,10 @@
"""API access status"""
# pylint: disable=too-few-public-methods
import datetime
import typing
import strawberry
from strawberry.types import Info
from selfprivacy_api.actions.api_tokens import (
get_api_tokens_with_caller_flag,

View file

@ -1,4 +1,5 @@
"""Backup"""
# pylint: disable=too-few-public-methods
import typing
import strawberry

View file

@ -1,4 +1,5 @@
"""Common types and enums used by different types of queries."""
from enum import Enum
import datetime
import typing

View file

@ -1,7 +1,9 @@
"""Jobs status"""
# pylint: disable=too-few-public-methods
import typing
import strawberry
from selfprivacy_api.graphql.common_types.jobs import (
ApiJob,
get_api_job_by_id,

View file

@ -1,4 +1,5 @@
"""Enums representing different service providers."""
from enum import Enum
import strawberry

View file

@ -1,4 +1,5 @@
"""Services status"""
# pylint: disable=too-few-public-methods
import typing
import strawberry

View file

@ -1,4 +1,5 @@
"""Storage queries."""
# pylint: disable=too-few-public-methods
import typing
import strawberry
@ -18,9 +19,11 @@ class Storage:
"""Get list of volumes"""
return [
StorageVolume(
total_space=str(volume.fssize)
if volume.fssize is not None
else str(volume.size),
total_space=(
str(volume.fssize)
if volume.fssize is not None
else str(volume.size)
),
free_space=str(volume.fsavail),
used_space=str(volume.fsused),
root=volume.is_root(),

View file

@ -1,8 +1,10 @@
"""Common system information and settings"""
# pylint: disable=too-few-public-methods
import os
import typing
import strawberry
from selfprivacy_api.graphql.common_types.dns import DnsRecord
from selfprivacy_api.graphql.queries.common import Alert, Severity

View file

@ -1,4 +1,5 @@
"""Users"""
# pylint: disable=too-few-public-methods
import typing
import strawberry