- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for basicConfig (0.06 sec)
-
scripts/label_approved.py
token: SecretStr debug: bool | None = False config: dict[str, LabelSettings] | Literal[""] = default_config settings = Settings() if settings.debug: logging.basicConfig(level=logging.DEBUG) else: logging.basicConfig(level=logging.INFO) logging.debug(f"Using config: {settings.json()}") g = Github(settings.token.get_secret_value()) repo = g.get_repo(settings.github_repository)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 13:58:30 UTC 2024 - 2.2K bytes - Viewed (0) -
scripts/deploy_docs_status.py
class Settings(BaseSettings): github_repository: str github_token: SecretStr deploy_url: str | None = None commit_sha: str run_id: int is_done: bool = False def main(): logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.model_dump_json()}") g = Github(settings.github_token.get_secret_value()) repo = g.get_repo(settings.github_repository)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 09 15:52:41 UTC 2024 - 3.1K bytes - Viewed (0) -
tests/test_compat.py
get_cached_model_fields, get_model_fields, is_bytes_sequence_annotation, is_scalar_field, is_uploadfile_sequence_annotation, ) from fastapi.testclient import TestClient from pydantic import BaseConfig, BaseModel, ConfigDict from pydantic.fields import FieldInfo from .utils import needs_pydanticv1, needs_pydanticv2 @needs_pydanticv2 def test_model_field_default_required(): # For coverage
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 11 07:45:30 UTC 2024 - 3.5K bytes - Viewed (0) -
fastapi/utils.py
name: str, type_: Any, class_validators: Optional[Dict[str, Validator]] = None, default: Optional[Any] = Undefined, required: Union[bool, UndefinedType] = Undefined, model_config: Type[BaseConfig] = BaseConfig, field_info: Optional[FieldInfo] = None, alias: Optional[str] = None, mode: Literal["validation", "serialization"] = "validation", ) -> ModelField: class_validators = class_validators or {}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 23:46:03 UTC 2024 - 7.8K bytes - Viewed (0)