Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sujuka99 committed Sep 26, 2023
1 parent 296f6e7 commit 15a799b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/gen_docs/gen_docs_env_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import csv
import shutil
from collections.abc import Callable, Generator
from collections.abc import Callable, Iterator
from dataclasses import dataclass
from pathlib import Path
from textwrap import fill
Expand Down Expand Up @@ -273,7 +273,7 @@ def fill_csv_pipeline_config(target: Path) -> None:
)


def collect_fields(settings: type[BaseSettings]) -> Generator[ModelField, None, None]:
def collect_fields(settings: type[BaseSettings]) -> Iterator[ModelField]:
"""Collect and yield all fields in a settings class.
:param model: settings class
Expand Down

0 comments on commit 15a799b

Please sign in to comment.