17
17
from dateutil .relativedelta import relativedelta as rd , FR , TH
18
18
19
19
from holidays .constants import WEEKEND
20
- from holidays .constants import JAN , MAR , APR , MAY , JUN , JUL , AUG , OCT , \
21
- NOV , DEC
20
+ from holidays .constants import JAN , MAR , APR , MAY , JUN , JUL , AUG , OCT , NOV , DEC
22
21
from holidays .holiday_base import HolidayBase
23
22
24
23
@@ -29,7 +28,7 @@ class Argentina(HolidayBase):
29
28
# https://www.clarin.com/feriados/
30
29
31
30
def __init__ (self , ** kwargs ):
32
- self .country = 'AR'
31
+ self .country = "AR"
33
32
HolidayBase .__init__ (self , ** kwargs )
34
33
35
34
def _populate (self , year ):
@@ -45,8 +44,10 @@ def _populate(self, year):
45
44
self [easter (year ) - rd (days = 47 )] = name
46
45
47
46
# Memory's National Day for the Truth and Justice
48
- name = "Día Nacional de la Memoria por la Verdad y la Justicia " \
49
- "[Memory's National Day for the Truth and Justice]"
47
+ name = (
48
+ "Día Nacional de la Memoria por la Verdad y la Justicia "
49
+ "[Memory's National Day for the Truth and Justice]"
50
+ )
50
51
51
52
if not self .observed and date (year , MAR , 24 ).weekday () in WEEKEND :
52
53
pass
@@ -56,7 +57,7 @@ def _populate(self, year):
56
57
# Holy Week
57
58
name_thu = "Semana Santa (Jueves Santo) [Holy day (Holy Thursday)]"
58
59
name_fri = "Semana Santa (Viernes Santo) [Holy day (Holy Friday)]"
59
- name_easter = ' Día de Pascuas [Easter Day]'
60
+ name_easter = " Día de Pascuas [Easter Day]"
60
61
61
62
self [easter (year ) + rd (weekday = TH (- 1 ))] = name_thu
62
63
self [easter (year ) + rd (weekday = FR (- 1 ))] = name_fri
@@ -70,10 +71,12 @@ def _populate(self, year):
70
71
if not self .observed and date (year , APR , 2 ).weekday () in WEEKEND :
71
72
pass
72
73
else :
73
- self [date (year , APR , 2 )] = "Día del Veterano y de los Caidos " \
74
- "en la Guerra de Malvinas [Veterans" \
75
- " Day and the Fallen in the" \
74
+ self [date (year , APR , 2 )] = (
75
+ "Día del Veterano y de los Caidos "
76
+ "en la Guerra de Malvinas [Veterans"
77
+ " Day and the Fallen in the"
76
78
" Malvinas War]"
79
+ )
77
80
78
81
# Labor Day
79
82
name = "Día del Trabajo [Labour Day]"
@@ -90,18 +93,22 @@ def _populate(self, year):
90
93
self [date (year , MAY , 25 )] = name
91
94
92
95
# Day Pass to the Immortality of General Martín Miguel de Güemes.
93
- name = "Día Pase a la Inmortalidad " \
94
- "del General Martín Miguel de Güemes [Day Pass " \
95
- "to the Immortality of General Martín Miguel de Güemes]"
96
+ name = (
97
+ "Día Pase a la Inmortalidad "
98
+ "del General Martín Miguel de Güemes [Day Pass "
99
+ "to the Immortality of General Martín Miguel de Güemes]"
100
+ )
96
101
if not self .observed and date (year , JUN , 17 ).weekday () in WEEKEND :
97
102
pass
98
103
else :
99
104
self [date (year , JUN , 17 )] = name
100
105
101
106
# Day Pass to the Immortality of General D. Manuel Belgrano.
102
- name = "Día Pase a la Inmortalidad " \
103
- "del General D. Manuel Belgrano [Day Pass " \
104
- "to the Immortality of General D. Manuel Belgrano]"
107
+ name = (
108
+ "Día Pase a la Inmortalidad "
109
+ "del General D. Manuel Belgrano [Day Pass "
110
+ "to the Immortality of General D. Manuel Belgrano]"
111
+ )
105
112
if not self .observed and date (year , JUN , 20 ).weekday () in WEEKEND :
106
113
pass
107
114
else :
@@ -115,9 +122,11 @@ def _populate(self, year):
115
122
self [date (year , JUL , 9 )] = name
116
123
117
124
# Day Pass to the Immortality of General D. José de San Martin
118
- name = "Día Pase a la Inmortalidad " \
119
- "del General D. José de San Martin [Day Pass " \
120
- "to the Immortality of General D. José de San Martin]"
125
+ name = (
126
+ "Día Pase a la Inmortalidad "
127
+ "del General D. José de San Martin [Day Pass "
128
+ "to the Immortality of General D. José de San Martin]"
129
+ )
121
130
if not self .observed and date (year , AUG , 17 ).weekday () in WEEKEND :
122
131
pass
123
132
else :
@@ -129,9 +138,11 @@ def _populate(self, year):
129
138
elif year < 2010 :
130
139
self [date (year , OCT , 12 )] = "Día de la Raza [Columbus day]"
131
140
else :
132
- self [date (year , OCT , 12 )] = "Día del Respeto a la Diversidad" \
133
- " Cultural [Respect for" \
141
+ self [date (year , OCT , 12 )] = (
142
+ "Día del Respeto a la Diversidad"
143
+ " Cultural [Respect for"
134
144
" Cultural Diversity Day]"
145
+ )
135
146
# National Sovereignty Day
136
147
name = "Día Nacional de la Soberanía [National Sovereignty Day]"
137
148
if not self .observed and date (year , NOV , 20 ).weekday () in WEEKEND :
@@ -143,8 +154,7 @@ def _populate(self, year):
143
154
if not self .observed and date (year , DEC , 8 ).weekday () in WEEKEND :
144
155
pass
145
156
else :
146
- self [date (year , DEC , 8 )] = "La Inmaculada Concepción" \
147
- " [Immaculate Conception]"
157
+ self [date (year , DEC , 8 )] = "La Inmaculada Concepción" " [Immaculate Conception]"
148
158
149
159
# Christmas
150
160
self [date (year , DEC , 25 )] = "Navidad [Christmas]"
0 commit comments