openseries 1.2.3__py3-none-any.whl → 1.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
openseries/datefixer.py CHANGED
@@ -24,7 +24,7 @@ def holiday_calendar(
24
24
  startyear: int,
25
25
  endyear: int,
26
26
  countries: CountriesType = "SE",
27
- custom_holidays: HolidayType = None,
27
+ custom_holidays: Optional[HolidayType] = None,
28
28
  ) -> busdaycalendar:
29
29
  """
30
30
  Generate a business calendar.
@@ -121,14 +121,14 @@ def date_offset_foll(
121
121
  adjust: bool = False,
122
122
  following: bool = True,
123
123
  countries: CountriesType = "SE",
124
- custom_holidays: HolidayType = None,
124
+ custom_holidays: Optional[HolidayType] = None,
125
125
  ) -> dt.date:
126
126
  """
127
127
  Offset dates according to a given calendar.
128
128
 
129
129
  Parameters
130
130
  ----------
131
- raw_date: Union[str, dt.date, dt.datetime, datetime64, Timestamp]
131
+ raw_date: DateType
132
132
  The date to offset from
133
133
  months_offset: int, default: 12
134
134
  Number of months as integer
@@ -175,7 +175,7 @@ def date_offset_foll(
175
175
  def get_previous_business_day_before_today(
176
176
  today: Optional[dt.date] = None,
177
177
  countries: CountriesType = "SE",
178
- custom_holidays: HolidayType = None,
178
+ custom_holidays: Optional[HolidayType] = None,
179
179
  ) -> dt.date:
180
180
  """
181
181
  Bump date backwards to find the previous business day.
@@ -212,7 +212,7 @@ def offset_business_days(
212
212
  ddate: dt.date,
213
213
  days: int,
214
214
  countries: CountriesType = "SE",
215
- custom_holidays: HolidayType = None,
215
+ custom_holidays: Optional[HolidayType] = None,
216
216
  ) -> dt.date:
217
217
  """
218
218
  Bump date by business days.
openseries/types.py CHANGED
@@ -72,7 +72,6 @@ HolidayType = Union[
72
72
  str,
73
73
  float,
74
74
  int,
75
- None,
76
75
  ]
77
76
 
78
77
  PlotlyLayoutType = tuple[
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openseries
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Package for simple financial time series analysis.
5
5
  Home-page: https://github.com/CaptorAB/OpenSeries
6
6
  License: BSD-3-Clause
@@ -24,8 +24,8 @@ Requires-Dist: holidays (>=0.31,<0.32)
24
24
  Requires-Dist: numpy (>=1.25.2,<2.0.0)
25
25
  Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
26
26
  Requires-Dist: pandas (>=2.0.3,<3.0.0)
27
- Requires-Dist: plotly (>=5.16.0,<6.0.0)
28
- Requires-Dist: pydantic (>=2.2.1,<3.0.0)
27
+ Requires-Dist: plotly (>=5.16.1,<6.0.0)
28
+ Requires-Dist: pydantic (>=2.3.0,<3.0.0)
29
29
  Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
30
30
  Requires-Dist: python-stdnum (>=1.19,<2.0)
31
31
  Requires-Dist: scipy (>=1.11.2,<2.0.0)
@@ -1,6 +1,6 @@
1
1
  openseries/__init__.py,sha256=hA7I5IFk88EnX6eyBbI1KLT_FGcmPIKF49xa5g3T8Yg,41
2
2
  openseries/common_model.py,sha256=wS-e5Kvgy3kGXOBvvOLfPcmaYYf6UhJlWb0-o_-Fk1M,62340
3
- openseries/datefixer.py,sha256=uhRe4TsHBbpisLYQnnlcJSZRNSCeRNFpQJIFnM_9IGE,15658
3
+ openseries/datefixer.py,sha256=o6vePHinMhJeC_z82ekGdKGePriP8d_0pCravckYoCI,15651
4
4
  openseries/frame.py,sha256=1if8q37ZaUzFJXfeV8P7tGCZ0S6PtMjlO6_EgYer_QI,56963
5
5
  openseries/load_plotly.py,sha256=U5UQ3R2VktEA_QneCfFObiOV1yfzZBuVmRmyXiLSwc8,1001
6
6
  openseries/plotly_captor_logo.json,sha256=pGMuPVu4cEO3ZsCH1wU03hxqbIQkHFNoJUs1k1WK89Y,178
@@ -8,8 +8,8 @@ openseries/plotly_layouts.json,sha256=xhrMOqW8LXb4QMtPiNBGdkPX518OHThiIJ68jpQk52
8
8
  openseries/risk.py,sha256=3l73XY78R1IuyafSKYF1Ly8GTnPBWmKXGK57HVek0e0,5504
9
9
  openseries/series.py,sha256=RmZUSyvYJk1AuWeHYFbnHQ4RQFdqXmzWL_dkn5FNomk,31909
10
10
  openseries/simulation.py,sha256=-QfiiVqzKh-Ar_i33WECHuMq1IQcpFJUBBGxhDHDWEM,35504
11
- openseries/types.py,sha256=aXOx9qQZtvSHJuwAsUKCMBjHv_-NzzEYREDurLCDjdA,7599
12
- openseries-1.2.3.dist-info/LICENSE.md,sha256=NJjeq3wyB7EnnHLmsdK1EK6zT00T1eB3FgAmHAPT_vM,1521
13
- openseries-1.2.3.dist-info/METADATA,sha256=PSNybn7uLyyN5E1vu3NAbAeJS8CFlh7MvmqDOC6yeSE,47916
14
- openseries-1.2.3.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
15
- openseries-1.2.3.dist-info/RECORD,,
11
+ openseries/types.py,sha256=7BJKEjnUPyIEAUBo6NjDa6MggJwVT3C0W42e57IXCXw,7589
12
+ openseries-1.2.4.dist-info/LICENSE.md,sha256=NJjeq3wyB7EnnHLmsdK1EK6zT00T1eB3FgAmHAPT_vM,1521
13
+ openseries-1.2.4.dist-info/METADATA,sha256=7WPSH4miwPHTQK-pEGpQaOLtu7Hs7WvazHQt2U_tGpU,47916
14
+ openseries-1.2.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
15
+ openseries-1.2.4.dist-info/RECORD,,