devel/py-holidays 0.104
Bundled Python dependency library pathPython holidays country calendar module
SHA-2567e327b255dee3de3c8f7fef58f835ccb7685881ea72176697ff60269c57743b2
Evidence
7:55… see CONTRIBUTORS file)
8# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9# ryanss <[email protected]> (c) 2014-2017
10# Website: https://github.com/vacanza/holidays
11# License: MIT (see LICENSE file)
12
⋯8 lines
357:16… al holidays validation.
358 if (has_substituted_holidays := getattr(self, "has_substituted_holidays", False)) and (
359 not getattr(self, "substituted_label", None)
360 or not get …
449:2… def __getattr__(self, name):
450 try:
451 return self.__getattribute__(name)
452 except AttributeError as e:
453 # This part is responsible for _add_holiday_* syntactic sugar support.
454 …
652:26… ey, (float, int)):
653 dt = datetime.fromtimestamp(key, timezone.utc).date()
654
655 # Key is not supported.
656 else:
657 raise TypeError(f"Cannot convert type '{type(key)}' to date. …
733:10… _str__(self) -> str:
734 if self:
735 return super().__str__()
736
737 parts = (
738 f"'{attribute_name}': {getattr(self, attribute_name, None)}"
739 for attribute_name in s …
Showing the top 5 files — 8 more files (66 regions) not shown.
No evidence locations were recorded for this file. Raw result