Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for append (0.17 sec)

  1. fastapi/dependencies/utils.py

        if field_info_in == params.ParamTypes.path:
            dependant.path_params.append(field)
        elif field_info_in == params.ParamTypes.query:
            dependant.query_params.append(field)
        elif field_info_in == params.ParamTypes.header:
            dependant.header_params.append(field)
        else:
            assert (
                field_info_in == params.ParamTypes.cookie
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. scripts/docs.py

                    "update it in docs/language_names.yml"
                )
                raise typer.Abort()
            use_name = f"{code} - {local_language_names[code]}"
            new_alternate.append({"link": url, "name": use_name})
        new_alternate.append({"link": "/em/", "name": "😉"})
        config["extra"]["alternate"] = new_alternate
        return config
    
    
    def update_config() -> None:
        config = get_updated_config_content()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  3. fastapi/openapi/utils.py

                        route.body_field, ModelField
                    ), "A request body must be a Pydantic Field"
                    body_fields_from_routes.append(route.body_field)
                if route.response_field:
                    responses_from_routes.append(route.response_field)
                if route.response_fields:
                    responses_from_routes.extend(route.response_fields.values())
                if route.callbacks:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  4. scripts/mkdocs_hooks.py

                # new_section = Section(title=new_title, children=new_children)
                item.title = new_title
                item.children = new_children
                new_items.append(item)
            else:
                new_items.append(item)
        return new_items
    
    
    def on_nav(
        nav: Navigation, *, config: MkDocsConfig, files: Files, **kwargs: Any
    ) -> Navigation:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. fastapi/encoders.py

                return encoder(obj)
    
        try:
            data = dict(obj)
        except Exception as e:
            errors: List[Exception] = []
            errors.append(e)
            try:
                data = vars(obj)
            except Exception as e:
                errors.append(e)
                raise ValueError(errors) from e
        return jsonable_encoder(
            data,
            include=include,
            exclude=exclude,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  6. docs_src/websockets/tutorial003_py39.py

    class ConnectionManager:
        def __init__(self):
            self.active_connections: list[WebSocket] = []
    
        async def connect(self, websocket: WebSocket):
            await websocket.accept()
            self.active_connections.append(websocket)
    
        def disconnect(self, websocket: WebSocket):
            self.active_connections.remove(websocket)
    
        async def send_personal_message(self, message: str, websocket: WebSocket):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  7. tests/test_datastructures.py

        path.write_bytes(b"<file content>")
        app = FastAPI()
    
        testing_file_store: List[UploadFile] = []
    
        @app.post("/uploadfile/")
        def create_upload_file(file: UploadFile):
            testing_file_store.append(file)
            return {"filename": file.filename}
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. .github/actions/people/app/main.py

        sponsors = []
        for key in keys:
            sponsor_group = []
            for login, sponsor in tiers[key].items():
                sponsor_group.append(
                    {"login": login, "avatarUrl": sponsor.avatarUrl, "url": sponsor.url}
                )
            sponsors.append(sponsor_group)
    
        people = {
            "maintainers": maintainers,
            "experts": experts,
            "last_month_experts": last_month_experts,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. tensorflow/api_template_v1.__init__.py

    _current_module = _sys.modules[__name__]
    _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
    if not hasattr(_current_module, "__path__"):
      __path__ = [_tf_api_dir]
    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    # Import compat before trying to import summary from tensorboard, so that
    # reexport_tf_summary can get compat from sys.modules. Only needed if using
    # lazy loading.
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. configure.py

      if is_linux():
        if int(environ_cp.get('TF_NEED_TENSORRT', False)):
          cuda_libraries.append('tensorrt')
        if environ_cp.get('TF_NCCL_VERSION', None):
          cuda_libraries.append('nccl')
      if is_windows():
        if int(environ_cp.get('TF_NEED_TENSORRT', False)):
          cuda_libraries.append('tensorrt')
          print('WARNING: TensorRT support on Windows is experimental\n')
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top