Skip to content

Commit d97f39a

Browse files
authored
Format modules (#367)
1 parent 5a287c1 commit d97f39a

File tree

6 files changed

+306
-212
lines changed

6 files changed

+306
-212
lines changed

dbldatagen/data_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ def scriptMerge(
19131913
result = "\n".join(results)
19141914

19151915
if asHtml:
1916-
result = HtmlUtils.formatCodeAsHtml(results)
1916+
result = HtmlUtils.formatCodeAsHtml(result)
19171917

19181918
return result
19191919

dbldatagen/datasets/dataset_provider.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
This file defines the DatasetProvider class
2121
"""
2222

23+
2324
class DatasetProvider(ABC):
2425
"""
2526
The DatasetProvider class acts as a base class for all dataset providers
@@ -206,7 +207,7 @@ def getTableGenerator(self, sparkSession: SparkSession, *, tableName: str|None=N
206207
raise NotImplementedError("Base data provider does not provide any table generation specifications!")
207208

208209
@abstractmethod
209-
def getAssociatedDataset(self, sparkSession: SparkSession, *, tableName: str|None=None, rows: int=-1, partitions: int=-1,
210+
def getAssociatedDataset(self, sparkSession: SparkSession, *, tableName: str | None=None, rows: int=-1, partitions: int=-1,
210211
**options: dict[str, Any]) -> DataGenerator:
211212
"""
212213
Gets associated datasets that are used in conjunction with the provider datasets.
@@ -240,7 +241,7 @@ def allowed_options(options: list[str]|None =None) -> Callable[[Callable], Calla
240241

241242
def decorator(func: Callable) -> Callable:
242243
@functools.wraps(func)
243-
def wrapper(*args, **kwargs) -> Callable: # noqa: ANN002
244+
def wrapper(*args, **kwargs) -> Callable:
244245
bad_options = [keyword_arg for keyword_arg in kwargs
245246
if keyword_arg not in DEFAULT_OPTIONS and keyword_arg not in options]
246247

0 commit comments

Comments
 (0)