# holidays # -------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file) # dr-prodigy (c) 2017-2023 # ryanss (c) 2014-2017 # Website: https://github.com/vacanza/holidays # License: MIT (see LICENSE file) from holidays.constants import PUBLIC from holidays.countries.japan import Japan class JapanExchange(Japan): """Japan Exchange Group (JPX) holidays. This class provides Japan Exchange-specific market holidays. Market holidays are days when the stock exchange is closed for trading. References: * """ country = None # type: ignore[assignment] market = "XJPX" parent_entity = Japan # JP catalogs as gettext fallback (HolidayBase._init_translation). supported_categories = (PUBLIC,) def _populate_public_holidays(self): super()._populate_public_holidays() self._populate_bank_holidays() class XJPX(JapanExchange): pass class JPX(JapanExchange): pass class TSE(JapanExchange): pass class OSE(JapanExchange): pass