Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 5517c86 commit 562e7da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions babelizer/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_setup_py_version() -> str | None:


@contextmanager
def save_files(files: Iterable[str]) -> Generator[dict[str, str], None, None]:
def save_files(files: Iterable[str]) -> Generator[dict[str, str]]:
"""Generate repository files through a context.
Parameters
Expand All @@ -96,7 +96,7 @@ def save_files(files: Iterable[str]) -> Generator[dict[str, str], None, None]:


@contextmanager
def as_cwd(path: str) -> Generator[None, None, None]:
def as_cwd(path: str) -> Generator[None]:
"""Change directory context.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion babelizer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(
def __getitem__(self, key: str) -> dict[str, Any]:
return self._meta[key]

def __iter__(self) -> Generator[str, None, None]:
def __iter__(self) -> Generator[str]:
yield from self._meta

def __len__(self) -> int:
Expand Down

0 comments on commit 562e7da

Please sign in to comment.