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
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.

View File

@ -8,6 +8,8 @@ import multiprocessing
import platform
import warnings
from reflex.config import environment
try:
from datetime import UTC, datetime
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).
Otherwise return True.
"""
from reflex.config import environment
return not environment.REFLEX_SKIP_COMPILE