-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
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
Object inconsistency #1843
Comments
It seems this behavior is intentional. Could you add the expected result as I'm having hard time understanding what's your suggestion for the fix. I don't expect this to be changed in Thank you! |
I would expect that on first print of the object we also get a dict of all holidays instead of the class. current output:
modified output, I would expect:
|
A brand new |
after initializing a holiday.[COUNTRY] object and also with holidays.country_holidays('COUNTRY_STRING') the object is a holidays.country_holidays instance object - for example: "<class 'holidays.countries.germany.DE'>"
__repr__ is also "holidays.country_holidays('[COUNTRY')" after initializing but after using a method takes an parameter with a Date (e.g. like Holiday.Base.get_list() method),
the __repr__ is a dict with all relevant holidays (which is better than get the class in __repr__ because the class Object we also will get with a type(object) call - in my opinion).
The text was updated successfully, but these errors were encountered: