
    ih                     0    d dl mZ d dlmZ  G d d      Zy)    )date)_normalize_tuplec                       e Zd ZdZddZy)StaticHolidayszHelper class for special and substituted holidays support.

    Populates special and substituted holidays related data from
    an external class.
    Nc           	      ,   |j                   j                         D ]f  }|j                  d      r$t        ||d       x}rt	        | ||       d| _        8|j                  d      sJt        ||d       x}sZt	        | ||       h t               | _        t        | di       j                         D ]d  }t        |      D ]T  }t        |      dk  rt        |      dk(  r.|\  }}}}}	| j                  j                  t        |	||             d| _        V f y )Nspecial_Tsubstituted_special_public_holidays      )__dict__keys
startswithgetattrsetattrhas_special_holidayssetweekend_workdaysvaluesr   lenaddr   has_substituted_holidays)
selfclsattribute_namevaluer
   special_public_holiday_
from_monthfrom_day	from_years
             V/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/groups/custom.py__init__zStaticHolidays.__init__   s   !ll//1N((4 nd;;;ne4,0)  **>: nd;;;ne4 2 !$'.t5NPR'S'Z'Z'\#*:;R*S&-.2 -.!3<R9Aq*h	))--d9j(.ST04- +T (]    )returnN)__name__
__module____qualname____doc__r#    r$   r"   r   r      s    5r$   r   N)datetimer   holidays.helpersr   r   r*   r$   r"   <module>r-      s     -#5 #5r$   