Skip to content

Commit 62f24b0

Browse files
committed
fix docstring code
1 parent f81a970 commit 62f24b0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

gokart/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def make_tree_info(
3333
Whether or not to output details.
3434
- abbr: bool
3535
Whether or not to simplify tasks information that has already appeared.
36-
- ignore_task_names: Optional[List[str]]
36+
- ignore_task_names: list[str] | None
3737
List of task names to ignore.
3838
Returns
3939
-------

gokart/tree/task_info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def make_task_info_as_tree_str(task: TaskOnKart, details: bool = False, abbr: bo
2121
Whether or not to output details.
2222
- abbr: bool
2323
Whether or not to simplify tasks information that has already appeared.
24-
- ignore_task_names: Optional[List[str]]
24+
- ignore_task_names: list[str] | None
2525
List of task names to ignore.
2626
Returns
2727
-------
@@ -40,7 +40,7 @@ def make_task_info_as_table(task: TaskOnKart, ignore_task_names: list[str] | Non
4040
----------
4141
- task: TaskOnKart
4242
Root task.
43-
- ignore_task_names: Optional[List[str]]
43+
- ignore_task_names: list[str] | None
4444
List of task names to ignore.
4545
Returns
4646
-------
@@ -65,7 +65,7 @@ def dump_task_info_table(task: TaskOnKart, task_info_dump_path: str, ignore_task
6565
Output target file path. Path destination can be `local`, `S3`, or `GCS`.
6666
File extension can be any type that gokart file processor accepts, including `csv`, `pickle`, or `txt`.
6767
See `TaskOnKart.make_target module <https://gokart.readthedocs.io/en/latest/task_on_kart.html#taskonkart-make-target>` for details.
68-
- ignore_task_names: Optional[List[str]]
68+
- ignore_task_names: list[str] | None
6969
List of task names to ignore.
7070
Returns
7171
-------
@@ -89,7 +89,7 @@ def dump_task_info_tree(task: TaskOnKart, task_info_dump_path: str, ignore_task_
8989
- task_info_dump_path: str
9090
Output target file path. Path destination can be `local`, `S3`, or `GCS`.
9191
File extension must be '.pkl'.
92-
- ignore_task_names: Optional[List[str]]
92+
- ignore_task_names: list[str] | None
9393
List of task names to ignore.
9494
- use_unique_id: bool = True
9595
Whether to use unique id to dump target file. Default is True.

0 commit comments

Comments
 (0)