pre-commit fixes
This commit is contained in:
parent
aa5c9b7f4b
commit
ce6be1ccd5
@ -17,7 +17,7 @@ from .misc import run_in_thread as run_in_thread
|
|||||||
class ExperimentalNamespace(SimpleNamespace):
|
class ExperimentalNamespace(SimpleNamespace):
|
||||||
"""Namespace for experimental features."""
|
"""Namespace for experimental features."""
|
||||||
|
|
||||||
def __getattribute__(self, item):
|
def __getattribute__(self, item: str):
|
||||||
"""Get attribute from the namespace.
|
"""Get attribute from the namespace.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -27,7 +27,7 @@ class ExperimentalNamespace(SimpleNamespace):
|
|||||||
The attribute.
|
The attribute.
|
||||||
"""
|
"""
|
||||||
warn(
|
warn(
|
||||||
"`rx._x` contains experimental features and might be removed at any time in the future .",
|
"`rx._x` contains experimental features and might be removed at any time in the future.",
|
||||||
dedupe=True,
|
dedupe=True,
|
||||||
)
|
)
|
||||||
return super().__getattribute__(item)
|
return super().__getattribute__(item)
|
||||||
@ -64,7 +64,10 @@ class ExperimentalNamespace(SimpleNamespace):
|
|||||||
Args:
|
Args:
|
||||||
component_name: name of the component.
|
component_name: name of the component.
|
||||||
"""
|
"""
|
||||||
warn(f"`rx._x.{component_name}` was promoted to `rx.{component_name}`.", dedupe=True)
|
warn(
|
||||||
|
f"`rx._x.{component_name}` was promoted to `rx.{component_name}`.",
|
||||||
|
dedupe=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
_x = ExperimentalNamespace(
|
_x = ExperimentalNamespace(
|
||||||
|
@ -1985,7 +1985,7 @@ def check_config_option_in_tier(
|
|||||||
option_name: str,
|
option_name: str,
|
||||||
allowed_tiers: list[str],
|
allowed_tiers: list[str],
|
||||||
fallback_value: Any,
|
fallback_value: Any,
|
||||||
help_link: str | None = None
|
help_link: str | None = None,
|
||||||
):
|
):
|
||||||
"""Check if a config option is allowed for the authenticated user's current tier.
|
"""Check if a config option is allowed for the authenticated user's current tier.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user