- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 27 for ELSE (0.01 seconds)
-
fastapi/dependencies/utils.py
return None, [get_missing_field_error(loc=loc)] else: return deepcopy(field.default), [] v_, errors_ = field.validate(value, values, loc=loc) if isinstance(errors_, list): new_errors = _regenerate_error_with_loc(errors=errors_, loc_prefix=()) return None, new_errors else: return v_, [] def _get_multidict_value(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
tests/test_request_params/test_file/test_optional_list.py
return {"file_size": [len(file) for file in p] if p else None} @app.post("/optional-list-uploadfile") async def read_optional_list_uploadfile( p: Annotated[Optional[list[UploadFile]], File()] = None, ): return {"file_size": [file.size for file in p] if p else None} @pytest.mark.parametrize( "path", [ "/optional-list-bytes",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt
fun promoteNightlyTaskName() = nightlyTaskName("promote") fun prepNightlyTaskName() = nightlyTaskName("prep") fun promoteMilestoneTaskName(): String = when { isRelease -> "promoteReleaseMilestone" else -> "promoteMilestone" }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 29 08:57:18 GMT 2025 - 2.5K bytes - Click Count (0) -
tests/test_request_params/test_file/test_optional.py
async def read_optional_bytes(p: Annotated[Optional[bytes], File()] = None): return {"file_size": len(p) if p else None} @app.post("/optional-uploadfile", operation_id="optional_uploadfile") async def read_optional_uploadfile(p: Annotated[Optional[UploadFile], File()] = None): return {"file_size": p.size if p else None} @pytest.mark.parametrize( "path", [ "/optional-bytes",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9.7K bytes - Click Count (0) -
fastapi/_compat/v2.py
None if (separate_input_output_schemas or _has_computed_fields(field)) else "validation" ) field_alias = ( (field.validation_alias or field.alias) if field.mode == "validation" else (field.serialization_alias or field.alias) ) # This expects that GenerateJsonSchema was already used to generate the definitionsCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 19.1K bytes - Click Count (0) -
.teamcity/src/main/kotlin/promotion/PublishNightlySnapshot.kt
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 29 08:57:18 GMT 2025 - 4.3K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
effectiveTriggerBranches.add(BOT_DAILY_UPGRADLE_WRAPPER_BRANCH) } triggers.vcsTrigger(effectiveTriggerBranches, enableTriggers) } else if (stage.trigger != Trigger.NEVER) { val effectiveTriggerBranches = mutableListOf(model.branch.branchName) if (model.branch.isMaster) {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 12:17:39 GMT 2025 - 7.2K bytes - Click Count (0) -
build-logic-commons/build-platform/build.gradle.kts
val groovyVersion = GroovySystem.getVersion() val isGroovy4 = VersionNumber.parse(groovyVersion).major >= 4 val codenarcVersion = if (isGroovy4) "3.6.0-groovy-4.0" else "3.6.0" val spockVersion = if (isGroovy4) "2.3-groovy-4.0" else "2.3-groovy-3.0" val groovyGroup = if (isGroovy4) "org.apache.groovy" else "org.codehaus.groovy" val asmVersion = "9.9" // To try out newer kotlin versions val kotlinVersion = providers.gradleProperty("buildKotlinVersion")
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 10:16:30 GMT 2025 - 4.6K bytes - Click Count (0) -
tests/test_infer_param_optionality.py
return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}] else: return [{"item_id": "i2", "user_id": user_id}] @item_router.get("/{item_id}") def get_item(item_id: str, user_id: Optional[str] = None): if user_id is None: return {"item_id": item_id} else: return {"item_id": item_id, "user_id": user_id}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 12.1K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial005.py
{"q_or_cookie": None}, ), ], ) def test_get(path, cookie, expected_status, expected_response, client: TestClient): if cookie is not None: client.cookies.set("last_query", cookie) else: client.cookies.clear() response = client.get(path) assert response.status_code == expected_status assert response.json() == expected_response def test_openapi_schema(client: TestClient):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.5K bytes - Click Count (0)