Skip to content

Commit 4d28165

Browse files
mstoclaude
andcommitted
fix: use "None" instead of "null" in comments and variable names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e245692 commit 4d28165

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

fgpyo/fastx/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ def __next__(self) -> Tuple[FastxRecord, ...]:
7070
raise StopIteration
7171

7272
elif not all_not_none(records):
73-
non_null_names: List[str | None] = [
73+
non_none_names: List[str | None] = [
7474
record.name for record in records if record is not None
7575
]
76-
assert all_not_none(non_null_names) # type narrowing
77-
# We know there is at least one non-null record because the previous conditional covers
78-
# the case where all records are null, so it is safe to index into the first element of
79-
# non_null_names.
80-
sequence_name: str = non_null_names[0]
76+
assert all_not_none(non_none_names) # type narrowing
77+
# We know there is at least one non-None record because the previous conditional
78+
# covers the case where all records are None, so it is safe to index into the first
79+
# element of non_none_names.
80+
sequence_name: str = non_none_names[0]
8181

8282
raise ValueError(
8383
"One or more of the FASTX files is truncated for sequence "

fgpyo/util/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def all_not_none(values: Collection[Optional[T]]) -> TypeGuard[Collection[T]]: .
233233

234234
def all_not_none(values: Iterable[Optional[T]]) -> bool:
235235
"""
236-
Type guard that checks all Optional collection elements are non-null.
236+
Type guard that checks all Optional collection elements are not None.
237237
238238
Args:
239239
values: Collection of Optional elements.

0 commit comments

Comments
 (0)