From a64402827b93ffa296b85ae275919c7ccd1dfc9f Mon Sep 17 00:00:00 2001 From: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> Date: Fri, 9 Feb 2024 16:41:45 +0530 Subject: [PATCH] Code review suggestion Co-authored-by: Marius van den Beek --- lib/galaxy/files/sources/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/files/sources/__init__.py b/lib/galaxy/files/sources/__init__.py index 24cf91f654e7..91216027abad 100644 --- a/lib/galaxy/files/sources/__init__.py +++ b/lib/galaxy/files/sources/__init__.py @@ -1,7 +1,11 @@ import abc -from dataclasses import dataclass, field import os import time +from dataclasses import ( + dataclass, + field, +) + from typing import ( Any, ClassVar, @@ -66,7 +70,7 @@ class FilesSourceOptions: # the HTTPFilesSource passes in additional http_headers through these properties, which # are merged with constructor defined http_headers. The interpretation of these properties # are filesystem specific. - extra_props: Optional[FilesSourceProperties] = field(default_factory=lambda: {}) + extra_props: Optional[FilesSourceProperties] = field(default_factory=lambda: FilesSourceProperties()) class SingleFileSource(metaclass=abc.ABCMeta):