more global imports

This commit is contained in:
Benedikt Bartscher 2024-10-26 14:21:11 +02:00
parent 53470f16e1
commit d30516295d
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -16,8 +16,6 @@ except ModuleNotFoundError:
from pydantic.fields import ModelField # type: ignore from pydantic.fields import ModelField # type: ignore
def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None: def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None:
"""Ensure that the field's name does not shadow an existing attribute of the model. """Ensure that the field's name does not shadow an existing attribute of the model.

View File

@ -8,6 +8,8 @@ import multiprocessing
import platform import platform
import warnings import warnings
from reflex.config import environment
try: try:
from datetime import UTC, datetime from datetime import UTC, datetime
except ImportError: except ImportError:
@ -93,8 +95,6 @@ def _raise_on_missing_project_hash() -> bool:
False when compilation should be skipped (i.e. no .web directory is required). False when compilation should be skipped (i.e. no .web directory is required).
Otherwise return True. Otherwise return True.
""" """
from reflex.config import environment
return not environment.REFLEX_SKIP_COMPILE return not environment.REFLEX_SKIP_COMPILE