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 Jan 13, 2025
1 parent 24e8288 commit 57a013e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/extensions/typed_returns.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def _process_return(lines: Iterable[str]) -> Generator[str, None, None]:
for line in lines:
if m := re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line):
yield f'-{m["param"]} (:class:`~{m["type"]}`)'
yield f"-{m['param']} (:class:`~{m['type']}`)"
else:
yield line

Expand Down
6 changes: 3 additions & 3 deletions src/formulaic_contrasts/_factor_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def _encode_evaled_factor(
We can record some metadata, before we call the original function.
"""
assert (
self._current_factor is None
), "_current_factor should always be None when we start recording metadata"
assert self._current_factor is None, (
"_current_factor should always be None when we start recording metadata"
)
if self.factor_metadata_storage is not None:
# Don't store if the factor is cached (then we should already have recorded it)
if factor.expr in self.encoded_cache or (factor.expr, reduced_rank) in self.encoded_cache:
Expand Down

0 comments on commit 57a013e

Please sign in to comment.