Search Options

Results per page
Sort
Preferred Languages
Advance

Results 851 - 860 of 1,264 for NONE (0.02 sec)

  1. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py310.py

                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient) -> None:
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py

                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient) -> None:
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/api_template.__init__.py

        _os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "1"):
      import tensorflow_io_gcs_filesystem as _tensorflow_io_gcs_filesystem
    
    # Lazy-load Keras v2/3.
    _tf_uses_legacy_keras = (
        _os.environ.get("TF_USE_LEGACY_KERAS", None) in ("true", "True", "1"))
    setattr(_current_module, "keras", _KerasLazyLoader(globals()))
    _module_dir = _module_util.get_parent_dir_for_name("keras._tf_keras.keras")
    _current_module.__path__ = [_module_dir] + _current_module.__path__
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_header_params/test_tutorial001_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"User-Agent": "testclient"}),
            ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}),
            ("/items", {"User-Agent": "FastAPI test"}, 200, {"User-Agent": "FastAPI test"}),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py310.py

    
    @needs_py310
    def test_query_no_values(client: TestClient):
        url = "/items/"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": None}
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/extra-models.md

    ```Python
    print(user_dict)
    ```
    
    we would get a Python `dict` with:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Unwrapping a `dict`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    return unmodifiableSet(innerSet);
                  }
                })
            .named("unmodifiableSet/HashSet")
            .withFeatures(
                CollectionFeature.NONE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionSize.ANY)
            .suppressing(suppressForUnmodifiableSet())
            .createTestSuite();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="8"
    {!> ../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
    ```
    
    ////
    
    /// note
    
    โžก ๐Ÿ”ข ๐Ÿ•ง โœ” โšซ๏ธ โœ”๏ธ ๐Ÿ• โžก.
    
    , ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ“ฃ โšซ๏ธ โฎ๏ธ `...` โ„ข โšซ๏ธ โœ”.
    
    ๐Ÿ‘, ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ“ฃ โšซ๏ธ โฎ๏ธ `None` โš–๏ธ โš’ ๐Ÿ”ข ๐Ÿ’ฒ, โšซ๏ธ ๐Ÿ”œ ๐Ÿšซ ๐Ÿ“‰ ๐Ÿ•ณ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ•ง ๐Ÿšš.
    
    ///
    
    ## โœ” ๐Ÿ”ข ๐Ÿ‘† ๐Ÿ’ช
    
    โžก๏ธ ๐Ÿ’ฌ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’š ๐Ÿ“ฃ ๐Ÿ”ข ๐Ÿ”ข `q` โœ” `str`.
    
    & ๐Ÿ‘† ๐Ÿšซ ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ•ณ ๐Ÿ™† ๐Ÿ‘ˆ ๐Ÿ”ข, ๐Ÿ‘† ๐Ÿšซ ๐Ÿค™ ๐Ÿ’ช โš™๏ธ `Query`.
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `Path` `item_id` โžก ๐Ÿ”ข.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/extra-models.md

    ไปฅๅฆ‚ไธ‹ๆ–นๅผ่ฐƒ็”จ๏ผš
    
    ```Python
    print(user_dict)
    ```
    
    ่พ“ๅ‡บ็š„ๅฐฑๆ˜ฏ Python **ๅญ—ๅ…ธ**๏ผš
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### ่งฃๅŒ… `dict`
    
    ๆŠŠ**ๅญ—ๅ…ธ** `user_dict` ไปฅ `**user_dict` ๅฝขๅผไผ ้€’็ป™ๅ‡ฝๆ•ฐ๏ผˆๆˆ–็ฑป๏ผ‰๏ผŒPython ไผšๆ‰ง่กŒ**่งฃๅŒ…**ๆ“ไฝœใ€‚ๅฎƒไผšๆŠŠ `user_dict` ็š„้”ฎๅ’Œๅ€ผไฝœไธบๅ…ณ้”ฎๅญ—ๅ‚ๆ•ฐ็›ดๆŽฅไผ ้€’ใ€‚
    
    ๅ› ๆญค๏ผŒๆŽฅ็€ไธŠ้ข็š„ `user_dict` ็ปง็ปญ็ผ–ๅ†™ๅฆ‚ไธ‹ไปฃ็ ๏ผš
    
    ```Python
    UserInDB(**user_dict)
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    def test_openapi_schema(client: TestClient) -> None:
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top