6464
6565
6666@commit_bindable .field ("author" )
67- def resolve_author (commit , info ) :
67+ def resolve_author (commit : Commit , info : GraphQLResolveInfo ) -> Owner | None :
6868 if commit .author_id :
6969 return OwnerLoader .loader (info ).load (commit .author_id )
7070
7171
7272@commit_bindable .field ("parent" )
73- def resolve_parent (commit , info ) :
73+ def resolve_parent (commit : Commit , info : GraphQLResolveInfo ) -> Commit | None :
7474 if commit .parent_commit_id :
7575 return CommitLoader .loader (info , commit .repository_id ).load (
7676 commit .parent_commit_id
7777 )
7878
7979
8080@commit_bindable .field ("yaml" )
81- async def resolve_yaml (commit : Commit , info ) -> dict :
81+ async def resolve_yaml (commit : Commit , info : GraphQLResolveInfo ) -> dict :
8282 command = info .context ["executor" ].get_command ("commit" )
8383 final_yaml = await command .get_final_yaml (commit )
8484 return yaml .dump (final_yaml )
8585
8686
8787@commit_bindable .field ("yamlState" )
88- async def resolve_yaml_state (commit : Commit , info ) -> YamlStates :
88+ async def resolve_yaml_state (commit : Commit , info : GraphQLResolveInfo ) -> YamlStates :
8989 command = info .context ["executor" ].get_command ("commit" )
9090 final_yaml = await command .get_final_yaml (commit )
9191 return get_yaml_state (yaml = final_yaml )
9292
9393
9494@commit_bindable .field ("uploads" )
9595@sync_to_async
96- def resolve_list_uploads (commit : Commit , info , ** kwargs ):
96+ def resolve_list_uploads (commit : Commit , info : GraphQLResolveInfo , ** kwargs ):
9797 if not commit .commitreport :
9898 return queryset_to_connection_sync ([])
9999
@@ -118,7 +118,9 @@ def resolve_list_uploads(commit: Commit, info, **kwargs):
118118
119119@commit_bindable .field ("compareWithParent" )
120120@sentry_sdk .trace
121- async def resolve_compare_with_parent (commit : Commit , info , ** kwargs ):
121+ async def resolve_compare_with_parent (
122+ commit : Commit , info : GraphQLResolveInfo , ** kwargs
123+ ):
122124 if not commit .parent_commit_id :
123125 return MissingBaseCommit ()
124126
0 commit comments