@@ -81,7 +81,7 @@ class MixedAction:
8181 def __len__ (self ) -> len:
8282 return len(self.infoset.actions )
8383
84- def __iter__(self ) -> typing.Iterator[typing.Tuple [Action , ProfileDType], None , None]:
84+ def __iter__(self ) -> typing.Iterator[tuple [Action , ProfileDType], None , None]:
8585 """Iterate over the probabilities assigned to actions by the mixed action.
8686
8787 .. versionadded:: 16.2.0
@@ -225,7 +225,7 @@ class MixedBehavior:
225225 def __len__ (self ) -> int:
226226 return len(self.player.actions )
227227
228- def mixed_actions(self ) -> typing.Iterator[typing.Tuple [Infoset , MixedAction], None , None]:
228+ def mixed_actions(self ) -> typing.Iterator[tuple [Infoset , MixedAction], None , None]:
229229 """Iterate over the mixed actions specified by the mixed behavior.
230230
231231 .. versionadded:: 16.2.0
@@ -240,7 +240,7 @@ class MixedBehavior:
240240 for infoset in self.player.infosets:
241241 yield infoset , self[infoset]
242242
243- def __iter__(self ) -> typing.Iterator[typing.Tuple [Action , ProfileDType], None , None]:
243+ def __iter__(self ) -> typing.Iterator[tuple [Action , ProfileDType], None , None]:
244244 """Iterate over the probabilities assigned to actions by the mixed behavior.
245245
246246 .. versionadded:: 16.2.0
@@ -257,8 +257,8 @@ class MixedBehavior:
257257
258258 def __getitem__(
259259 self ,
260- index: typing.Union[ InfosetReference , ActionReference]
261- ) -> typing.Union[ MixedAction , ProfileDType] :
260+ index: InfosetReference | ActionReference
261+ ) -> MixedAction | ProfileDType:
262262 """Access a component of the mixed behavior specified by `index`.
263263
264264 Parameters
@@ -299,7 +299,7 @@ class MixedBehavior:
299299 )
300300
301301 def __setitem__ (self ,
302- index: typing.Union[ InfosetReference , ActionReference] ,
302+ index: InfosetReference | ActionReference ,
303303 value: typing.Any ) -> None:
304304 """Sets a component of the mixed behavior to `value`.
305305
@@ -387,7 +387,7 @@ class MixedBehaviorProfile:
387387 """The game on which this mixed behavior profile is defined."""
388388 return self._game
389389
390- def mixed_behaviors(self ) -> typing.Iterator[typing.Tuple [Player , MixedBehavior], None , None]:
390+ def mixed_behaviors(self ) -> typing.Iterator[tuple [Player , MixedBehavior], None , None]:
391391 """Iterate over the mixed behaviors in the profile.
392392
393393 .. versionadded:: 16.2.0
@@ -402,7 +402,7 @@ class MixedBehaviorProfile:
402402 for player in self.game.players:
403403 yield player , self[player]
404404
405- def mixed_actions(self ) -> typing.Iterator[typing.Tuple [Infoset , MixedAction], None , None]:
405+ def mixed_actions(self ) -> typing.Iterator[tuple [Infoset , MixedAction], None , None]:
406406 """Iterate over the mixed actions specified by the profile.
407407
408408 .. versionadded:: 16.2.0
@@ -417,7 +417,7 @@ class MixedBehaviorProfile:
417417 for infoset in self.game.infosets:
418418 yield infoset , self[infoset]
419419
420- def __iter__(self ) -> typing.Iterator[typing.Tuple [Action , ProfileDType], None , None]:
420+ def __iter__(self ) -> typing.Iterator[tuple [Action , ProfileDType], None , None]:
421421 """Iterate over the probabilities assigned to actions by the profile.
422422
423423 .. versionadded:: 16.2.0
@@ -434,8 +434,8 @@ class MixedBehaviorProfile:
434434
435435 def __getitem__(
436436 self ,
437- index: typing.Union[ PlayerReference , InfosetReference , ActionReference]
438- ) -> typing.Union[ MixedBehavior , MixedAction , ProfileDType] :
437+ index: PlayerReference | InfosetReference | ActionReference
438+ ) -> MixedBehavior | MixedAction | ProfileDType:
439439 """Access a component of the mixed behavior specified by `index`.
440440
441441 Parameters
@@ -506,7 +506,7 @@ class MixedBehaviorProfile:
506506
507507 def __setitem__ (
508508 self ,
509- index: typing.Union[ PlayerReference , InfosetReference , ActionReference] ,
509+ index: PlayerReference | InfosetReference | ActionReference ,
510510 value: typing.Any
511511 ) -> None:
512512 """Sets a probability , mixed agent strategy , or mixed behavior strategy to `value`.
0 commit comments