Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Events (0.14 sec)

  1. fastapi/applications.py

            return decorator
    
        @deprecated(
            """
            on_event is deprecated, use lifespan event handlers instead.
    
            Read more about it in the
            [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
            """
        )
        def on_event(
            self,
            event_type: Annotated[
                str,
                Doc(
                    """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

                    """
                ),
            ],
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            """
            Add an event handler for the router.
    
            `on_event` is deprecated, use `lifespan` event handlers instead.
    
            Read more about it in the
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  3. .github/actions/comment-docs-preview-in-pr/app/main.py

        repo = g.get_repo(settings.github_repository)
        try:
            event = PartialGithubEvent.parse_file(settings.github_event_path)
        except ValidationError as e:
            logging.error(f"Error parsing event file: {e.errors()}")
            sys.exit(0)
        use_pr: Union[PullRequest, None] = None
        for pr in repo.get_pulls():
            if pr.head.sha == event.workflow_run.head_commit.id:
                use_pr = pr
                break
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top