We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> from datetime import date >>> import holidays >>> >>> class TestHolidays(holidays.US): ... def _populate(self, year): ... holidays.US._populate(self, year) ... self[date(year, 12, 31)] = "New Year's Eve" ... >>> '2014-12-31' in TestHolidays() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "holidays.py", line 79, in __contains__ return dict.__contains__(self, self.__keytransform__(key)) File "holidays.py", line 75, in __keytransform__ self._populate(year) File "<stdin>", line 4, in _populate File "holidays.py", line 85, in __setitem__ return dict.__setitem__(self, self.__keytransform__(key), value) File "holidays.py", line 75, in __keytransform__ self._populate(year) File "<stdin>", line 4, in _populate File "holidays.py", line 85, in __setitem__ return dict.__setitem__(self, self.__keytransform__(key), value)) ... File "holidays.py", line 75, in __keytransform__ self._populate(year) File "<stdin>", line 3, in _populate File "holidays.py", line 112, in _populate self[date(year, 1, 1)] = name File "holidays.py", line 85, in __setitem__ return dict.__setitem__(self, self.__keytransform__(key), value) File "holidays.py", line 72, in __keytransform__ year = (key + rd(days=+1)).year RuntimeError: maximum recursion depth exceeded while calling a Python object
The text was updated successfully, but these errors were encountered:
Fixes #3 RuntimeError on custom Dec 31st holiday
6a3c43b
Merge pull request #3 from dr-prodigy/beta
fa3dea3
Beta
Merge pull request #3 from KJhellico/thailand_improved
3f23a8b
Tests update
Fix SonarCloud security hotspots (attempt #3) (#1723)
d894c42
No branches or pull requests
The text was updated successfully, but these errors were encountered: