- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for model_validate (0.73 sec)
-
scripts/notify_translations.py
data = get_graphql_response( settings=settings, query=all_discussions_query, category_id=questions_translations_category_id, ) graphql_response = AllDiscussionsResponse.model_validate(data) return graphql_response.data.repository.discussions.nodes def get_graphql_translation_discussion_comments_edges( *, settings: Settings, discussion_number: int, after: Union[str, None] = None
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 12.7K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial001.py
mod.engine.dispose() def test_crud_app(client: TestClient): # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor # this if using obj.model_validate becomes independent of Pydantic v2 with warnings.catch_warnings(record=True): warnings.simplefilter("always") # No heroes before creating response = client.get("heroes/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 14K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial002.py
mod.engine.dispose() def test_crud_app(client: TestClient): # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor # this if using obj.model_validate becomes independent of Pydantic v2 with warnings.catch_warnings(record=True): warnings.simplefilter("always") # No heroes before creating response = client.get("heroes/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 17.9K bytes - Viewed (0) -
docs/ru/docs/advanced/path-operation-advanced-configuration.md
//// /// info | Информация В Pydantic версии 1 метод для парсинга и валидации объекта назывался `Item.parse_obj()`, в Pydantic версии 2 метод называется `Item.model_validate()`. /// /// tip | Совет Здесь мы переиспользуем ту же Pydantic-модель. Но аналогично мы могли бы валидировать данные и каким-то другим способом.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 11.5K bytes - Viewed (0) -
scripts/people.py
data = get_graphql_response( settings=settings, query=discussions_query, after=after, category_id=questions_category_id, ) graphql_response = DiscussionsResponse.model_validate(data) return graphql_response.data.repository.discussions.edges class DiscussionExpertsResults(BaseModel): commenters: Counter[str] last_month_commenters: Counter[str]
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 12.3K bytes - Viewed (0)