[docs]@staticmethoddeffrom_parsed_message_result(commit:Commit,parsed_message_result:ParsedMessageResult)->ParsedCommit:returnParsedCommit(bump=parsed_message_result.bump,# TODO: breaking v10, swap back to type rather than categorytype=parsed_message_result.category,scope=parsed_message_result.scope,descriptions=list(parsed_message_result.descriptions),breaking_descriptions=list(parsed_message_result.breaking_descriptions),commit=commit,linked_merge_request=parsed_message_result.linked_merge_request,)
_T=TypeVar("_T",bound=ParsedCommit)_E=TypeVar("_E",bound=ParseError)# For extensions, this type can be used to build an alias# for example CustomParseResult = ParseResultType[CustomParsedCommit, ParseError]ParseResultType=Union[_T,_E]ParseResult=ParseResultType[ParsedCommit,ParseError]