-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy path_settings.pyi
More file actions
50 lines (47 loc) · 1.64 KB
/
_settings.pyi
File metadata and controls
50 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from collections.abc import Callable as Callable
from collections.abc import Generator, Iterable
from contextlib import contextmanager
from dataclasses import dataclass
from typing import Literal, Self
@dataclass
class SettingsManager[T]:
__doc_tmpl__: str = ...
def describe(
self,
option: str | Iterable[str] | None = None,
*,
should_print_description: bool = True,
as_rst: bool = False,
) -> str: ...
def deprecate(
self, option: str, removal_version: str, message: str | None = None
) -> None: ...
def register(
self,
option: str,
*,
default_value: T,
description: str,
validate: Callable[[T, Self], None],
option_type: object | None = None,
get_from_env: Callable[[str, T], T] = ...,
) -> None: ...
def __setattr__(self, option: str, val: object) -> None: ...
def __getattr__(self, option: str) -> object: ...
def __dir__(self) -> Iterable[str]: ...
def reset(self, option: Iterable[str] | str) -> None: ...
@contextmanager
def override(self, **overrides) -> Generator[None]: ...
@property
def __doc__(self): ...
class _AnnDataSettingsManager(SettingsManager):
remove_unused_categories: bool = True
check_uniqueness: bool = True
allow_write_nullable_strings: bool = False
zarr_write_format: Literal[2, 3] = 2
use_sparse_array_on_read: bool = False
min_rows_for_chunked_h5_copy: int = 1000
disallow_forward_slash_in_h5ad: bool = False
write_csr_csc_indices_with_min_possible_dtype: bool = False
auto_shard_zarr_v3: bool = False
settings: _AnnDataSettingsManager