@@ -100,13 +100,13 @@ class PastView[ValueT: (float, int), Index: Comparable](ABC):
100100
101101 @property
102102 @abstractmethod
103- def periods (self ) -> Sequence [Index ]:
103+ def periods (self ) -> tuple [Index , ... ]:
104104 """PLACEHOLDER PROPERTY"""
105105 ...
106106
107107 @property
108108 @abstractmethod
109- def securities (self ) -> Sequence [str ]:
109+ def securities (self ) -> tuple [str , ... ]:
110110 """PLACEHOLDER PROPERTY"""
111111 ...
112112
@@ -430,8 +430,8 @@ def __init__(
430430 periods = self ._resolve_period_axis_spec (reference_view_for_axis_values )
431431 securities = self ._resolve_security_axis_spec (reference_view_for_axis_values )
432432
433- self ._periods : Sequence [Index ] = periods
434- self ._securities : Sequence [str ] = securities
433+ self ._periods : tuple [Index , ... ] = periods
434+ self ._securities : tuple [str , ... ] = securities
435435 self ._security_policy : SecurityAxisPolicy = security_policy
436436 self ._period_policy : PeriodAxisPolicy = period_policy
437437 self ._backend : str = backend
@@ -443,11 +443,11 @@ def prices(self) -> PastUniversePrices[Index]:
443443 return self ._prices
444444
445445 @property
446- def periods (self ) -> Sequence [Index ]:
446+ def periods (self ) -> tuple [Index , ... ]:
447447 return self ._periods
448448
449449 @property
450- def securities (self ) -> Sequence [str ]:
450+ def securities (self ) -> tuple [str , ... ]:
451451 return self ._securities
452452
453453 @property
@@ -544,10 +544,10 @@ def _align(
544544 # TODO: Add a reindexing method to the PastView protocol in some way
545545 # return view.reindex(securities=new_sec, periods=new_per)
546546
547- def _resolve_period_axis_spec (self , spec : str ) -> Sequence [Index ]:
547+ def _resolve_period_axis_spec (self , spec : str ) -> tuple [Index , ... ]:
548548 return self ._resolve_axis_spec (spec ).periods
549549
550- def _resolve_security_axis_spec (self , spec : str ) -> Sequence [str ]:
550+ def _resolve_security_axis_spec (self , spec : str ) -> tuple [str , ... ]:
551551 return self ._resolve_axis_spec (spec ).securities
552552
553553 def _resolve_axis_spec (self , spec : str ) -> PastView :
0 commit comments