more global imports
This commit is contained in:
parent
53470f16e1
commit
d30516295d
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user