Skip to content

DatePickerInput does not work with Python 3.14 #128

@jacobzimmermann

Description

@jacobzimmermann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions