@@ -160,7 +160,7 @@ def run_in_background(
160
160
coroutine : "Callable[[concurrent.futures.Future[T]], Coroutine[Any, Any, None]]" ,
161
161
* ,
162
162
debug : bool = False ,
163
- _policy_lock : threading .Lock = threading .Lock ()
163
+ _policy_lock : threading .Lock = threading .Lock (),
164
164
) -> T :
165
165
"""
166
166
Runs ``coroutine(future)`` in a new event loop on a background thread.
@@ -306,7 +306,7 @@ def __init__(
306
306
black_clock : Optional [float ] = None ,
307
307
white_inc : Optional [float ] = None ,
308
308
black_inc : Optional [float ] = None ,
309
- remaining_moves : Optional [int ] = None
309
+ remaining_moves : Optional [int ] = None ,
310
310
):
311
311
self .time = time
312
312
self .depth = depth
@@ -355,7 +355,7 @@ def __init__(
355
355
info : Optional [InfoDict ] = None ,
356
356
* ,
357
357
draw_offered : bool = False ,
358
- resigned : bool = False
358
+ resigned : bool = False ,
359
359
) -> None :
360
360
self .move = move
361
361
self .ponder = ponder
@@ -804,7 +804,7 @@ async def play(
804
804
info : Info = INFO_NONE ,
805
805
ponder : bool = False ,
806
806
root_moves : Optional [Iterable [chess .Move ]] = None ,
807
- options : ConfigMapping = {}
807
+ options : ConfigMapping = {},
808
808
) -> PlayResult :
809
809
"""
810
810
Play a position.
@@ -840,7 +840,7 @@ async def analyse(
840
840
game : object = None ,
841
841
info : Info = INFO_ALL ,
842
842
root_moves : Optional [Iterable [chess .Move ]] = None ,
843
- options : ConfigMapping = {}
843
+ options : ConfigMapping = {},
844
844
) -> Union [List [InfoDict ], InfoDict ]:
845
845
"""
846
846
Analyses a position and returns a dictionary of
@@ -893,7 +893,7 @@ async def analysis(
893
893
game : object = None ,
894
894
info : Info = INFO_ALL ,
895
895
root_moves : Optional [Iterable [chess .Move ]] = None ,
896
- options : ConfigMapping = {}
896
+ options : ConfigMapping = {},
897
897
) -> "AnalysisResult" :
898
898
"""
899
899
Starts analysing a position.
@@ -935,7 +935,7 @@ async def popen(
935
935
* ,
936
936
setpgrp : bool = False ,
937
937
loop = None ,
938
- ** kwargs : Any
938
+ ** kwargs : Any ,
939
939
) -> Tuple [asyncio .SubprocessTransport , EngineProtocolT ]:
940
940
if not isinstance (command , list ):
941
941
command = [command ]
@@ -1264,7 +1264,7 @@ def _go(
1264
1264
* ,
1265
1265
root_moves : Optional [Iterable [chess .Move ]] = None ,
1266
1266
ponder : bool = False ,
1267
- infinite : bool = False
1267
+ infinite : bool = False ,
1268
1268
) -> None :
1269
1269
builder = ["go" ]
1270
1270
if ponder :
@@ -1312,7 +1312,7 @@ async def play(
1312
1312
info : Info = INFO_NONE ,
1313
1313
ponder : bool = False ,
1314
1314
root_moves : Optional [Iterable [chess .Move ]] = None ,
1315
- options : ConfigMapping = {}
1315
+ options : ConfigMapping = {},
1316
1316
) -> PlayResult :
1317
1317
class Command (BaseCommand [UciProtocol , PlayResult ]):
1318
1318
def start (self , engine : UciProtocol ) -> None :
@@ -1415,7 +1415,7 @@ async def analysis(
1415
1415
game : object = None ,
1416
1416
info : Info = INFO_ALL ,
1417
1417
root_moves : Optional [Iterable [chess .Move ]] = None ,
1418
- options : Mapping [str , Union [str ]] = {}
1418
+ options : Mapping [str , Union [str ]] = {},
1419
1419
) -> "AnalysisResult" :
1420
1420
class Command (BaseCommand [UciProtocol , AnalysisResult ]):
1421
1421
def start (self , engine : UciProtocol ) -> None :
@@ -1898,7 +1898,7 @@ async def play(
1898
1898
info : Info = INFO_NONE ,
1899
1899
ponder : bool = False ,
1900
1900
root_moves : Optional [Iterable [chess .Move ]] = None ,
1901
- options : ConfigMapping = {}
1901
+ options : ConfigMapping = {},
1902
1902
) -> PlayResult :
1903
1903
if root_moves is not None :
1904
1904
raise EngineError (
@@ -2070,7 +2070,7 @@ async def analysis(
2070
2070
game : object = None ,
2071
2071
info : Info = INFO_ALL ,
2072
2072
root_moves : Optional [Iterable [chess .Move ]] = None ,
2073
- options : ConfigMapping = {}
2073
+ options : ConfigMapping = {},
2074
2074
) -> "AnalysisResult" :
2075
2075
if multipv is not None :
2076
2076
raise EngineError ("xboard engine does not support multipv" )
@@ -2529,7 +2529,7 @@ def __init__(
2529
2529
transport : asyncio .SubprocessTransport ,
2530
2530
protocol : EngineProtocol ,
2531
2531
* ,
2532
- timeout : Optional [float ] = 10.0
2532
+ timeout : Optional [float ] = 10.0 ,
2533
2533
) -> None :
2534
2534
self .transport = transport
2535
2535
self .protocol = protocol
@@ -2600,7 +2600,7 @@ def play(
2600
2600
info : Info = INFO_NONE ,
2601
2601
ponder : bool = False ,
2602
2602
root_moves : Optional [Iterable [chess .Move ]] = None ,
2603
- options : ConfigMapping = {}
2603
+ options : ConfigMapping = {},
2604
2604
) -> PlayResult :
2605
2605
with self ._not_shut_down ():
2606
2606
coro = asyncio .wait_for (
@@ -2627,7 +2627,7 @@ def analyse(
2627
2627
game : object = None ,
2628
2628
info : Info = INFO_ALL ,
2629
2629
root_moves : Optional [Iterable [chess .Move ]] = None ,
2630
- options : ConfigMapping = {}
2630
+ options : ConfigMapping = {},
2631
2631
) -> Union [InfoDict , List [InfoDict ]]:
2632
2632
with self ._not_shut_down ():
2633
2633
coro = asyncio .wait_for (
@@ -2654,7 +2654,7 @@ def analysis(
2654
2654
game : object = None ,
2655
2655
info : Info = INFO_ALL ,
2656
2656
root_moves : Optional [Iterable [chess .Move ]] = None ,
2657
- options : ConfigMapping = {}
2657
+ options : ConfigMapping = {},
2658
2658
) -> "SimpleAnalysisResult" :
2659
2659
with self ._not_shut_down ():
2660
2660
coro = asyncio .wait_for (
@@ -2701,7 +2701,7 @@ def popen(
2701
2701
timeout : Optional [float ] = 10.0 ,
2702
2702
debug : bool = False ,
2703
2703
setpgrp : bool = False ,
2704
- ** popen_args : Any
2704
+ ** popen_args : Any ,
2705
2705
) -> "SimpleEngine" :
2706
2706
async def background (future : "concurrent.futures.Future[SimpleEngine]" ) -> None :
2707
2707
transport , protocol = await Protocol .popen (command , setpgrp = setpgrp , ** popen_args )
@@ -2725,7 +2725,7 @@ def popen_uci(
2725
2725
timeout : Optional [float ] = 10.0 ,
2726
2726
debug : bool = False ,
2727
2727
setpgrp : bool = False ,
2728
- ** popen_args : Any
2728
+ ** popen_args : Any ,
2729
2729
) -> "SimpleEngine" :
2730
2730
"""
2731
2731
Spawns and initializes an UCI engine.
@@ -2743,7 +2743,7 @@ def popen_xboard(
2743
2743
timeout : Optional [float ] = 10.0 ,
2744
2744
debug : bool = False ,
2745
2745
setpgrp : bool = False ,
2746
- ** popen_args : Any
2746
+ ** popen_args : Any ,
2747
2747
) -> "SimpleEngine" :
2748
2748
"""
2749
2749
Spawns and initializes an XBoard engine.
0 commit comments