File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,8 @@ def execute(
2626 font_size : int ,
2727 ) -> tuple [Annotation ]:
2828 font = ImageFont .truetype (str (STATIC_PATH / "Roboto-Regular.ttf" ), size = font_size )
29- column_texts_list = self ._set_value_to_texts_list (
30- self ._get_texts_from_string (column_texts ),
31- )
32- row_texts_list = self ._set_value_to_texts_list (
33- self ._get_texts_from_string (row_texts ),
34- )
29+ column_texts_list = self ._get_texts_from_string (column_texts )
30+ row_texts_list = self ._get_texts_from_string (row_texts )
3531
3632 result = Annotation (column_texts = column_texts_list , row_texts = row_texts_list , font = font )
3733 return (result ,)
@@ -42,8 +38,3 @@ def _get_texts_from_string(self, string: str) -> list[str]:
4238 for i in string .split (";" )
4339 if (result := i .strip ()) != ""
4440 ]
45-
46- def _set_value_to_texts_list (self , texts_list : list [str ]) -> list [str ] | None :
47- if not texts_list :
48- return None
49- return texts_list
You can’t perform that action at this time.
0 commit comments