Skip to content

Commit

Permalink
Move type hint to header
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktConze committed Oct 8, 2024
1 parent e90a7f5 commit 77fe459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import os
from collections.abc import Iterable
from typing import List
from typing import List, Union

from sisyphus import Job, Task, Path, global_settings as gs
from sisyphus.delayed_ops import DelayedBase
Expand Down Expand Up @@ -280,9 +280,9 @@ class WriteToTextFileJob(Job):

__sis_hash_exclude__ = {"out_name": "file.txt"}

def __init__(self, content, out_name: str = "file.txt"):
def __init__(self, content: Union[str, dict, Iterable, DelayedBase], out_name: str = "file.txt"):
"""
:param list|dict|str|DelayedBase content: input which will be written into a text file
:param content: input which will be written into a text file
:param out_name: user specific file name for the output file
"""
self.content = content
Expand Down

0 comments on commit 77fe459

Please sign in to comment.