-
-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Describe the bug
The DatePickerInput widget cannot be imported when running Python 3.14, although it works with Python <= 3.13
To Reproduce
`
from bootstrap_datepicker_plus.widgets import DatePickerInput
[...]
File ".venv/lib64/python3.14/site-packages/pydantic/v1/fields.py", line 434, in init
self.prepare()
~~~~~~~~~~~~^^
File ".venv/lib64/python3.14/site-packages/pydantic/v1/fields.py", line 544, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File ".venv/lib64/python3.14/site-packages/pydantic/v1/fields.py", line 563, in set_default_and_type
raise errors.ConfigError(
f'you need to set the type of field {self.name!r} when using default_factory'
)
pydantic.v1.errors.ConfigError: you need to set the type of field 'debug' when using default_factory
`
A clear and concise description of what you expected to happen.
DatePickerInput should work like it does with Python 3.13
Setup Information (please complete the following information):
- OS: Fedora 43, AlmaLinux 9.3
- Python version 3.14
- Django version 5.2.7
- Bootstrap version 5
[x] I have followed the configuration instructions and checked out the
common error troubleshooting page.
Leads to 404