Home / Function/ update_comment() — fastapi Function Reference

update_comment() — fastapi Function Reference

Architecture documentation for the update_comment() function in notify_translations.py from the fastapi codebase.

Function python FastAPI Routing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ab7596ec_b849_0364_85c9_f9c3182b25bd["update_comment()"]
  97ea90ba_5175_e861_5c41_e18772cfce41["notify_translations.py"]
  ab7596ec_b849_0364_85c9_f9c3182b25bd -->|defined in| 97ea90ba_5175_e861_5c41_e18772cfce41
  aff23c90_a22b_d9fe_46af_57f96d115b4e["main()"]
  aff23c90_a22b_d9fe_46af_57f96d115b4e -->|calls| ab7596ec_b849_0364_85c9_f9c3182b25bd
  5de10094_76ff_e44a_c8f3_3063ed26efa2["get_graphql_response()"]
  ab7596ec_b849_0364_85c9_f9c3182b25bd -->|calls| 5de10094_76ff_e44a_c8f3_3063ed26efa2
  style ab7596ec_b849_0364_85c9_f9c3182b25bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/notify_translations.py lines 295–303

def update_comment(*, settings: Settings, comment_id: str, body: str) -> Comment:
    data = get_graphql_response(
        settings=settings,
        query=update_comment_mutation,
        comment_id=comment_id,
        body=body,
    )
    response = UpdateCommentResponse.model_validate(data)
    return response.data.updateDiscussionComment.comment

Domain

Subdomains

Called By

Frequently Asked Questions

What does update_comment() do?
update_comment() is a function in the fastapi codebase, defined in scripts/notify_translations.py.
Where is update_comment() defined?
update_comment() is defined in scripts/notify_translations.py at line 295.
What does update_comment() call?
update_comment() calls 1 function(s): get_graphql_response.
What calls update_comment()?
update_comment() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free