Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for repl (0.17 sec)

  1. tests/test_params_repr.py

        )
    
    
    def test_query_repr_number():
        assert repr(Query(1)) == "Query(1)"
    
    
    def test_query_repr_list():
        assert repr(Query([])) == "Query([])"
    
    
    def test_header_repr_str():
        assert repr(Header("teststr")) == "Header(teststr)"
    
    
    def test_header_repr_none():
        assert repr(Header(None)) == "Header(None)"
    
    
    def test_header_repr_ellipsis():
        assert repr(Header(...)) == IsOneOf(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

                        )
                for reply in comment.replies.nodes:
                    if reply.author:
                        authors[reply.author.login] = reply.author
                        if reply.author.login != discussion_author_name:
                            author_time = discussion_commentors.get(
                                reply.author.login, reply.createdAt
                            )
    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)
  3. .github/actions/notify-translations/app/main.py

        else:
            logging.basicConfig(level=logging.INFO)
        logging.debug(f"Using config: {settings.json()}")
        g = Github(settings.input_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
        if not settings.github_event_path.is_file():
            raise RuntimeError(
                f"No github event file available at: {settings.github_event_path}"
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  4. tests/test_ws_router.py

        async def errorhandler(websocket: WebSocket, call_next):
            try:
                return await call_next()
            except Exception as e:
                await websocket.close(code=status.WS_1006_ABNORMAL_CLOSURE, reason=repr(e))
    
        myapp = make_app(middleware=[Middleware(errorhandler)])
        client = TestClient(myapp)
        with pytest.raises(WebSocketDisconnect) as e:
            with client.websocket_connect("/depends-err/"):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. docs/de/docs/how-to/custom-docs-ui-assets.md

    ```JavaScript
    /*!
     * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
     * -------------------------------------------------------------
     *   Version: "2.0.0-rc.18"
     *   Repo: https://github.com/Redocly/redoc
     */
    !function(e,t){"object"==typeof exports&&"object"==typeof m
    
    ...
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:17:36 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/extending-openapi.md

    该文件开头如下:
    
    ```JavaScript
    /*!
     * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
     * -------------------------------------------------------------
     *   Version: "2.0.0-rc.18"
     *   Repo: https://github.com/Redocly/redoc
     */
    !function(e,t){"object"==typeof exports&&"object"==typeof m
    
    ...
    ```
    
    能打开这个文件就表示 FastAPI 应用能提供静态文件服务,并且文档要调用的静态文件放到了正确的位置。
    
    接下来,使用静态文件配置文档。
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/oauth2-jwt.md

        ```Python hl_lines="89-106"
        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    ## Update the `/token` *path operation*
    
    Create a `timedelta` with the expiration time of the token.
    
    Create a real JWT access token and return it.
    
    === "Python 3.10+"
    
        ```Python hl_lines="117-132"
        {!> ../../../docs_src/security/tutorial004_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/bigger-applications.md

        {!> ../../../docs_src/bigger_applications/app/dependencies.py!}
        ```
    
    !!! tip
        We are using an invented header to simplify this example.
    
        But in real cases you will get better results using the integrated [Security utilities](security/index.md){.internal-link target=_blank}.
    
    ## Another module with `APIRouter`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  9. docs/pt/docs/async.md

    Ainda assim, a última experiência não foi a melhor.
    
    ---
    
    Essa poderia ser a história paralela equivalente aos hambúrgueres.
    
    Para um exemplo "mais real", imagine um banco.
    
    Até recentemente, a maioria dos bancos tinha muitos caixas e uma grande fila.
    
    Todos os caixas fazendo todo o trabalho, um cliente após o outro.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  10. docs/en/docs/release-notes.md

    * Update GitHub action issue-manager. PR [#1520](https://github.com/tiangolo/fastapi/pull/1520).
    * Add new links:
        * **English articles**:
            * [Real-time Notifications with Python and Postgres](https://wuilly.com/2019/10/real-time-notifications-with-python-and-postgres/) by [Guillermo Cruz](https://wuilly.com/).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
Back to top