Skip to content

Commit

Permalink
fix(dhis2): fix typing annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yannforget committed May 27, 2024
1 parent 6b0860d commit ee0c5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhexa/toolbox/dhis2/dhis2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import os
from functools import wraps
from typing import Callable, List, Tuple, Union
from typing import Callable, Generator, List, Tuple, Union
from urllib.parse import urlparse

import pandas as pd
Expand Down Expand Up @@ -512,7 +512,7 @@ def add_org_unit_parent_columns(
return df


def _split_list(src_list: list, length: int) -> List[list]:
def _split_list(src_list: list, length: int) -> Generator[List]:
"""Split list into chunks."""
for i in range(0, len(src_list), length):
yield src_list[i : i + length]
Expand Down

0 comments on commit ee0c5db

Please sign in to comment.