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