Skip to content

Commit

Permalink
Code review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van den Beek <[email protected]>
  • Loading branch information
nuwang and mvdbeek committed Feb 9, 2024
1 parent bffb7a9 commit 4a47a43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/galaxy/files/sources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import abc

Check failure on line 1 in lib/galaxy/files/sources/__init__.py

View workflow job for this annotation

GitHub Actions / Test (3.11)

Imports are incorrectly sorted and/or formatted.
from dataclasses import dataclass, field
import os
import time
from dataclasses import (
dataclass,
field,
)

from typing import (
Any,
ClassVar,
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 4a47a43

Please sign in to comment.