Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp A. <[email protected]>
  • Loading branch information
ilan-gold and flying-sheep authored Jan 29, 2024
1 parent d72b14d commit b7ab7cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anndata/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _update_override_function_for_new_option(
# Update docstring for `SettingsManager.override` as well.
insert_index = self.override.__doc__.find("\n Yields")
option_docstring = "\t" + "\t".join(
self.describe(option, print_description=False).splitlines(True)
self.describe(option, print_description=False).splitlines(keepends=True)
)
self.override.__func__.__doc__ = (
self.override.__doc__[:insert_index]
Expand Down Expand Up @@ -234,7 +234,7 @@ def __getattr__(self, option: str) -> object:
raise AttributeError(f"{option} not found.")

def __dir__(self) -> Iterable[str]:
return sorted(super().__dir__() + list(self._config.keys()))
return sorted((*dir(super()), *self._config.keys()))

def reset(self, option: Iterable[str] | str) -> None:
"""
Expand Down

0 comments on commit b7ab7cf

Please sign in to comment.