async def get(self,request_configuration: Optional[RequestConfiguration[ContentTypeItemRequestBuilderGetQueryParameters]] = None) -> Optional[ContentType]:
        """
        The collection of content types that are ancestors of this content type.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ContentType]
        """
        request_info = self.to_get_request_information(
            request_configuration
        )
        from .........models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from .........models.content_type import ContentType

        return await self.request_adapter.send_async(request_info, ContentType, error_mapping)

        The collection of content types that are ancestors of this content type.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ContentType]
        
msgraph/generated/sites/item/lists/item/content_types/item/base_types/item/content_type_item_request_builder.py