Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for io (0.14 sec)

  1. tests/test_datastructures.py

    import io
    from pathlib import Path
    from typing import List
    
    import pytest
    from fastapi import FastAPI, UploadFile
    from fastapi.datastructures import Default
    from fastapi.testclient import TestClient
    
    
    # TODO: remove when deprecating Pydantic v1
    def test_upload_file_invalid():
        with pytest.raises(ValueError):
            UploadFile.validate("not a Starlette UploadFile")
    
    
    def test_upload_file_invalid_pydantic_v2():
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. tensorflow/api_template_v1.__init__.py

    # lazy loading.
    _current_module.compat.v2  # pylint: disable=pointless-statement
    
    # Load tensorflow-io-gcs-filesystem if enabled
    if (_os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "true" or
        _os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "1"):
      import tensorflow_io_gcs_filesystem as _tensorflow_io_gcs_filesystem
    
    # Lazy-load Keras v1.
    _tf_uses_legacy_keras = (
    Python
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. fastapi/applications.py

                    Boolean indicating if debug tracebacks should be returned on server
                    errors.
    
                    Read more in the
                    [Starlette docs for Applications](https://www.starlette.io/applications/#instantiating-the-application).
                    """
                ),
            ] = False,
            routes: Annotated[
                Optional[List[BaseRoute]],
                Doc(
                    """
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. tensorflow/api_template.__init__.py

    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    
    # Load tensorflow-io-gcs-filesystem if enabled
    if (_os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "true" or
        _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 = (
    Python
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
Back to top