From 1b2771e276725aa6598de03b1c024c609b04ad45 Mon Sep 17 00:00:00 2001 From: Romin Benfer <romin.benfer@rwth-aachen.de> Date: Sat, 17 Sep 2022 00:57:44 +0200 Subject: [PATCH] Minor fixes to static class members --- src/coscine/config.py | 6 +++--- src/coscine/resource.py | 12 ++++++------ src/coscine/utils.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/coscine/config.py b/src/coscine/config.py index a220691..bb77ba2 100644 --- a/src/coscine/config.py +++ b/src/coscine/config.py @@ -45,9 +45,9 @@ class Config: 3. System directory (e.g. User/AppData/Local/... on Windows) """ - token: str = None - language: str = None - concurrent: bool = True + token: str + language: str + concurrent: bool ############################################################################### diff --git a/src/coscine/resource.py b/src/coscine/resource.py index 30862f1..584685c 100644 --- a/src/coscine/resource.py +++ b/src/coscine/resource.py @@ -51,12 +51,12 @@ class S3info: Provides a simple pythonic interface to resource S3 access data """ - read_access_key: str = "" - read_secret_key: str = "" - write_access_key: str = "" - write_secret_key: str = "" - endpoint: str = "" - bucket: str = "" + read_access_key: str + read_secret_key: str + write_access_key: str + write_secret_key: str + endpoint: str + bucket: str _data: dict def __init__(self, data: dict) -> None: diff --git a/src/coscine/utils.py b/src/coscine/utils.py index de359e4..0097fc7 100644 --- a/src/coscine/utils.py +++ b/src/coscine/utils.py @@ -28,7 +28,7 @@ source like StackOverflow. Credit is given where it is due. from typing import List, Union ############################################################################### -# Clas +# Class ############################################################################### # Source: https://stackoverflow.com/questions/12523586/ # python-format-size-application-converting-b-to-kb-mb-gb-tb -- GitLab