@@ -609,7 +609,9 @@ async def fetch_videos(self, period="all", sort="time", type="all", language=Non
609609 data = await self ._http .get_videos (user_id = str (self .id ), period = period , sort = sort , type = type , language = language )
610610 return [Video (self ._http , x , self ) for x in data ]
611611
612- async def end_prediction (self , token : str , prediction_id : str , status : str , winning_outcome_id : str = None ) -> "Prediction" :
612+ async def end_prediction (
613+ self , token : str , prediction_id : str , status : str , winning_outcome_id : str = None
614+ ) -> "Prediction" :
613615 """|coro|
614616 End a prediction with an outcome.
615617
@@ -627,11 +629,12 @@ async def end_prediction(self, token: str, prediction_id: str, status: str, winn
627629 from .models import Prediction
628630
629631 data = await self ._http .patch_prediction (
630- token ,
631- broadcaster_id = str (self .id ),
632- prediction_id = prediction_id ,
633- status = status ,
634- winning_outcome_id = winning_outcome_id )
632+ token ,
633+ broadcaster_id = str (self .id ),
634+ prediction_id = prediction_id ,
635+ status = status ,
636+ winning_outcome_id = winning_outcome_id ,
637+ )
635638 return Prediction (self ._http , data [0 ])
636639
637640 async def get_predictions (self , token : str , prediction_id : str = None ) -> List ["Prediction" ]:
@@ -652,13 +655,12 @@ async def get_predictions(self, token: str, prediction_id: str = None) -> List["
652655 """
653656 from .models import Prediction
654657
655- data = await self ._http .get_predictions (
656- token ,
657- broadcaster_id = str (self .id ),
658- prediction_id = prediction_id )
658+ data = await self ._http .get_predictions (token , broadcaster_id = str (self .id ), prediction_id = prediction_id )
659659 return [Prediction (self ._http , d ) for d in data ]
660660
661- async def create_prediction (self , token : str , title : str , blue_outcome : str , pink_outcome : str , prediction_window : int ) -> "Prediction" :
661+ async def create_prediction (
662+ self , token : str , title : str , blue_outcome : str , pink_outcome : str , prediction_window : int
663+ ) -> "Prediction" :
662664 """|coro|
663665 Creates a prediction for the channel.
664666
@@ -682,12 +684,13 @@ async def create_prediction(self, token: str, title: str, blue_outcome: str, pin
682684 from .models import Prediction
683685
684686 data = await self ._http .post_prediction (
685- token ,
686- broadcaster_id = str (self .id ),
687- title = title ,
688- blue_outcome = blue_outcome ,
689- pink_outcome = pink_outcome ,
690- prediction_window = prediction_window )
687+ token ,
688+ broadcaster_id = str (self .id ),
689+ title = title ,
690+ blue_outcome = blue_outcome ,
691+ pink_outcome = pink_outcome ,
692+ prediction_window = prediction_window ,
693+ )
691694 return Prediction (self ._http , data [0 ])
692695
693696
0 commit comments