@@ -68,7 +68,7 @@ def calendar_session(
68
68
draw ,
69
69
calendar_name : str ,
70
70
limit : tuple [pd .Timestamp | None , pd .Timestamp | None ] = (None , None ),
71
- ) -> st . SearchStrategy [ pd .Timestamp ] :
71
+ ) -> pd .Timestamp :
72
72
"""Return strategy to generate a session for a given calendar.
73
73
74
74
Parameters
@@ -96,7 +96,7 @@ def calendar_start_end_sessions(
96
96
limit : tuple [pd .Timestamp | None , pd .Timestamp | None ] = (None , None ),
97
97
min_dist : int | pd .Timedelta = 0 ,
98
98
max_dist : int | pd .Timedelta | None = None ,
99
- ) -> st . SearchStrategy [ tuple [pd .Timestamp , pd .Timestamp ] ]:
99
+ ) -> tuple [pd .Timestamp , pd .Timestamp ]:
100
100
"""Return strategy to generate a start and end session for a given calendar.
101
101
102
102
Parameters
@@ -163,7 +163,7 @@ def start_minutes(
163
163
draw ,
164
164
calendar_name : str ,
165
165
limit : tuple [pd .Timestamp | None , pd .Timestamp | None ] = (None , None ),
166
- ) -> st . SearchStrategy [ pd .Timestamp ] :
166
+ ) -> pd .Timestamp :
167
167
"""Return strategy to generate a 'start' minute for a given calendar.
168
168
169
169
Minute will represent a trading minute (not a close).
@@ -211,7 +211,7 @@ def end_minutes(
211
211
draw ,
212
212
calendar_name : str ,
213
213
limit : tuple [pd .Timestamp | None , pd .Timestamp | None ] = (None , None ),
214
- ) -> st . SearchStrategy [ pd .Timestamp ] :
214
+ ) -> pd .Timestamp :
215
215
"""Return strategy to generate an 'end' minute for a given calendar.
216
216
217
217
Minute will represent a trading minute, excluding open minutes, or a
@@ -267,7 +267,7 @@ def end_minutes(
267
267
def calendar_start_end_minutes (
268
268
draw ,
269
269
calendar_name : str ,
270
- ) -> st . SearchStrategy [ tuple [pd .Timestamp , pd .Timestamp ] ]:
270
+ ) -> tuple [pd .Timestamp , pd .Timestamp ]:
271
271
"""Return strategy to generate a start and end minute for a given calendar.
272
272
273
273
'start' will be a trading minute.
@@ -297,9 +297,7 @@ def get_pp_default() -> dict[str, typing.Any]:
297
297
298
298
299
299
@st .composite
300
- def pp_start_end_sessions (
301
- draw , calendar_name : str
302
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
300
+ def pp_start_end_sessions (draw , calendar_name : str ) -> dict [str , typing .Any ]:
303
301
"""Return strategy to generate period parameters with 'start' and 'end' only.
304
302
305
303
'start' and 'end' will both be sessions of `calendar`.
@@ -312,9 +310,7 @@ def pp_start_end_sessions(
312
310
313
311
314
312
@st .composite
315
- def pp_end_minute_only (
316
- draw , calendar_name : str
317
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
313
+ def pp_end_minute_only (draw , calendar_name : str ) -> dict [str , typing .Any ]:
318
314
"""Return strategy to generate period parameters with 'end' only.
319
315
320
316
'end' will be a trading minute or a close minute of `calendar_name`.
@@ -327,9 +323,7 @@ def pp_end_minute_only(
327
323
328
324
329
325
@st .composite
330
- def pp_start_end_minutes (
331
- draw , calendar_name : str
332
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
326
+ def pp_start_end_minutes (draw , calendar_name : str ) -> dict [str , typing .Any ]:
333
327
"""Return strategy to generate period parameters with 'start' and 'end' only.
334
328
335
329
'start' will be a trading minute, 'end' will be a trading minute or a
@@ -344,7 +338,7 @@ def pp_start_end_minutes(
344
338
345
339
346
340
@st .composite
347
- def pp_days (draw , calendar_name : str ) -> st . SearchStrategy [ dict [str , typing .Any ] ]:
341
+ def pp_days (draw , calendar_name : str ) -> dict [str , typing .Any ]:
348
342
"""Return strategy to generate specific arrangment of period parameters.
349
343
350
344
duration defined in 'days'.
@@ -374,7 +368,7 @@ def pp_days_start_session(
374
368
draw ,
375
369
calendar_name : str ,
376
370
start_will_roll_to_ms : bool = False ,
377
- ) -> st . SearchStrategy [ dict [str , typing .Any ] ]:
371
+ ) -> dict [str , typing .Any ]:
378
372
"""Return strategy to generate specific arrangment of period parameters.
379
373
380
374
duration defined in 'days'.
@@ -411,9 +405,7 @@ def pp_days_start_session(
411
405
412
406
413
407
@st .composite
414
- def pp_days_end_session (
415
- draw , calendar_name : str
416
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
408
+ def pp_days_end_session (draw , calendar_name : str ) -> dict [str , typing .Any ]:
417
409
"""Return strategy to generate specific arrangment of period parameters.
418
410
419
411
duration defined in 'days'.
@@ -438,9 +430,7 @@ def pp_days_end_session(
438
430
439
431
440
432
@st .composite
441
- def pp_days_start_minute (
442
- draw , calendar_name : str
443
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
433
+ def pp_days_start_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
444
434
"""Return strategy to generate specific arrangment of period parameters.
445
435
446
436
duration defined in 'days'.
@@ -461,9 +451,7 @@ def pp_days_start_minute(
461
451
462
452
463
453
@st .composite
464
- def pp_days_end_minute (
465
- draw , calendar_name : str
466
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
454
+ def pp_days_end_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
467
455
"""Return strategy to generate specific arrangment of period parameters.
468
456
469
457
duration defined in 'days'.
@@ -481,7 +469,7 @@ def pp_days_end_minute(
481
469
482
470
483
471
@st .composite
484
- def pp_caldur (draw ) -> st . SearchStrategy [ dict [str , typing .Any ] ]:
472
+ def pp_caldur (draw ) -> dict [str , typing .Any ]:
485
473
"""Return strategy to generate specific arrangment of period parameters.
486
474
487
475
duration defined in 'weeks' and/or 'months' and/or 'years' (i.e.
@@ -500,9 +488,7 @@ def pp_caldur(draw) -> st.SearchStrategy[dict[str, typing.Any]]:
500
488
501
489
502
490
@st .composite
503
- def pp_caldur_start_session (
504
- draw , calendar_name : str
505
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
491
+ def pp_caldur_start_session (draw , calendar_name : str ) -> dict [str , typing .Any ]:
506
492
"""Return strategy to generate specific arrangment of period parameters.
507
493
508
494
- duration defined in 'weeks' and/or 'months' and/or 'years' (i.e.
@@ -530,9 +516,7 @@ def pp_caldur_start_session(
530
516
531
517
532
518
@st .composite
533
- def pp_caldur_end_session (
534
- draw , calendar_name : str
535
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
519
+ def pp_caldur_end_session (draw , calendar_name : str ) -> dict [str , typing .Any ]:
536
520
"""Return strategy to generate specific arrangment of period parameters.
537
521
538
522
- duration defined in 'weeks' and/or 'months' and/or 'years' (i.e.
@@ -568,9 +552,7 @@ def pp_caldur_end_session(
568
552
569
553
570
554
@st .composite
571
- def pp_caldur_start_minute (
572
- draw , calendar_name : str
573
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
555
+ def pp_caldur_start_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
574
556
"""Return strategy to generate specific arrangment of period parameters.
575
557
576
558
- duration defined in 'weeks' and/or 'months' and/or 'years' (i.e.
@@ -598,9 +580,7 @@ def pp_caldur_start_minute(
598
580
599
581
600
582
@st .composite
601
- def pp_caldur_end_minute (
602
- draw , calendar_name : str
603
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
583
+ def pp_caldur_end_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
604
584
"""Return strategy to generate specific arrangment of period parameters.
605
585
606
586
- duration defined in 'weeks' and/or 'months' and/or 'years' (i.e.
@@ -619,7 +599,7 @@ def pp_caldur_end_minute(
619
599
620
600
621
601
@st .composite
622
- def pp_intraday (draw ) -> st . SearchStrategy [ dict [str , typing .Any ] ]:
602
+ def pp_intraday (draw ) -> dict [str , typing .Any ]:
623
603
"""Return strategy to generate specific arrangment of period parameters.
624
604
625
605
- duration defined in 'minutes' and/or 'hours' (i.e. in trading
@@ -637,9 +617,7 @@ def pp_intraday(draw) -> st.SearchStrategy[dict[str, typing.Any]]:
637
617
638
618
639
619
@st .composite
640
- def pp_intraday_start_minute (
641
- draw , calendar_name : str
642
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
620
+ def pp_intraday_start_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
643
621
"""Return strategy to generate specific arrangment of period parameters.
644
622
645
623
- duration defined in 'minutes' and/or 'hours' (i.e. in trading
@@ -660,9 +638,7 @@ def pp_intraday_start_minute(
660
638
661
639
662
640
@st .composite
663
- def pp_intraday_end_minute (
664
- draw , calendar_name : str
665
- ) -> st .SearchStrategy [dict [str , typing .Any ]]:
641
+ def pp_intraday_end_minute (draw , calendar_name : str ) -> dict [str , typing .Any ]:
666
642
"""Return strategy to generate specific arrangment of period parameters.
667
643
668
644
- duration defined in 'minutes' and/or 'hours' (i.e. in trading
0 commit comments