pre-commit fixes

This commit is contained in:
Masen Furer 2025-01-31 12:57:00 -08:00
parent aa5c9b7f4b
commit ce6be1ccd5
No known key found for this signature in database
GPG Key ID: 2AE2BD5531FF94F4
2 changed files with 7 additions and 4 deletions

View File

@ -17,7 +17,7 @@ from .misc import run_in_thread as run_in_thread
class ExperimentalNamespace(SimpleNamespace):
"""Namespace for experimental features."""
def __getattribute__(self, item):
def __getattribute__(self, item: str):
"""Get attribute from the namespace.
Args:
@ -27,7 +27,7 @@ class ExperimentalNamespace(SimpleNamespace):
The attribute.
"""
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,
)
return super().__getattribute__(item)
@ -64,7 +64,10 @@ class ExperimentalNamespace(SimpleNamespace):
Args:
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(

View File

@ -1985,7 +1985,7 @@ def check_config_option_in_tier(
option_name: str,
allowed_tiers: list[str],
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.