Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2701 - 2710 of 4,250 for inst (0.03 seconds)

  1. docs/ko/docs/tutorial/path-params.md

            "path",
            "item_id"
          ],
          "msg": "Input should be a valid integer, unable to parse string as an integer",
          "input": "foo"
        }
      ]
    }
    ```
    
    경로 매개변수 `item_id`가 `int`가 아닌 `"foo"` 값을 가졌기 때문입니다.
    
    `int` 대신 `float`을 제공하면(예: [http://127.0.0.1:8000/items/4.2](http://127.0.0.1:8000/items/4.2)) 동일한 오류가 나타납니다.
    
    /// check | 확인
    
    즉, 파이썬 타입 선언을 하면 **FastAPI**는 데이터 검증을 합니다.
    
    또한 오류에는 검증을 통과하지 못한 지점이 정확히 명시됩니다.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  2. tests/test_modules_same_name_body/app/a.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute")
    def compute(a: int = Body(), b: str = Body()):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 160 bytes
    - Click Count (0)
  3. tensorflow/c/eager/dlpack_test.cc

    namespace {
    
    void TestHandleFromDLPack(TF_Status* status, TFE_Context* ctx,
                              std::vector<int64_t> shape,
                              std::vector<int64_t> strides) {
      size_t num_elements = 1;
      for (int i = 0; i < static_cast<int32_t>(shape.size()); ++i) {
        num_elements *= shape[i];
      }
      std::vector<float> data(num_elements);
      for (size_t j = 0; j < num_elements; ++j) {
        data[j] = j;
      }
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Click Count (0)
  4. docs_src/python_types/tutorial008b_py310.py

    def process_item(item: int | str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 51 bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return pickInstance(
            ImmutableList.of(
                int.class, long.class, void.class, Object.class, Object[].class, Iterable.class),
            Object.class);
      }
    
      @Generates
      Object generateObject() {
        return generateString();
      }
    
      @Generates
      Number generateNumber() {
        return generateInt();
      }
    
      @Generates
      int generateInt() {
        return freshness.get();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.1K bytes
    - Click Count (0)
  6. docs_src/path_params_numeric_validations/tutorial004_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=1)], q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 317 bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

            UNAUTHORIZED(3),
            /** General failure status. */
            FAILED(9);
    
            private final int id;
    
            Status(final int id) {
                this.id = id;
            }
    
            /**
             * Gets the numeric ID of the status.
             * @return The numeric ID of the status.
             */
            public int getId() {
                return id;
            }
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/sql-databases.md

    Нарешті, особистості наших героїв захищено! 🥷
    
    Вона також перевизначає `id: int`. Роблячи це, ми укладаємо **контракт** з клієнтами API, що `id` завжди буде присутній і буде типу `int` (ніколи не `None`).
    
    /// tip | Порада
    
    Наявність у моделі відповіді гарантії, що значення завжди доступне і завжди `int` (не `None`), дуже корисна для клієнтів API - вони можуть писати значно простіший код, маючи цю визначеність.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  9. internal/s3select/message.go

    // https://docs.aws.amazon.com/AmazonS3/latest/API/images/s3select-frame-diagram-frame-overview.png
    // hence the calculation is made accordingly.
    func totalByteLength(headerLength, payloadLength int) int {
    	return 4 + 4 + 4 + headerLength + payloadLength + 4
    }
    
    func genMessage(header, payload []byte) []byte {
    	headerLength := len(header)
    	payloadLength := len(payload)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/SmbResourceTest.java

            void testGetType() throws CIFSException {
                // Given
                int expectedType = 1; // Assuming TYPE_FILESYSTEM
                when(mockResource.getType()).thenReturn(expectedType);
    
                // When
                int type = mockResource.getType();
    
                // Then
                assertEquals(expectedType, type, "Should return correct resource type");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
Back to Top