Skip to content

Commit fbdc1d2

Browse files
style: pre-commit.ci fixes
1 parent d3ff093 commit fbdc1d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev_tools/check_ownership.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def perform_all_codeowners_checks(repo_dir: Path) -> ReturnCode:
149149
return return_code
150150

151151

152-
def is_empty(iterable: Generator[Path, None, None]) -> bool:
152+
def is_empty(iterable: Generator[Path]) -> bool:
153153
return next(iterable, None) is None
154154

155155

dev_tools/ownership_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def parse_ownership(codeowners_file: Path) -> tuple[OwnerShipEntry, ...]:
9696
return tuple(reversed(tuple(get_ownership_entries(codeowners_file))))
9797

9898

99-
def get_ownership_entries(codeowners_file: Path) -> Generator[OwnerShipEntry, None, None]:
99+
def get_ownership_entries(codeowners_file: Path) -> Generator[OwnerShipEntry]:
100100
with codeowners_file.open() as file:
101101
for line_number, line in enumerate(file.readlines(), start=1):
102102
current_line = line.strip()

0 commit comments

Comments
 (0)