Deprecation policy
qddate follows a two-releases-before-removal deprecation schedule for
any public API change that is not strictly additive.
Process
When a public name is renamed or its semantics change:
- The new canonical name is added immediately; the old name continues to
work and emits
DeprecationWarning(Python's standard warning class). - The old name stays for at least one minor release (e.g. 1.0.x → 1.1.x).
After at least two minor releases it may be removed in a major release
(2.0.x). The
CHANGELOG.mdentry for the major release will list every removal. - The deprecation warning message names the canonical replacement. The
test suite (
filterwarningsinpyproject.toml) turns anyDeprecationWarningraised from qddate's own code into an error, so a deprecated call inside the library fails CI at PR time.
Active deprecations (as of 1.1.0)
noyear= → allow_no_year=
The old name did the opposite of what the name suggested: passing
noyear=True enabled the no-year patterns (which cause many false
positives). It is now allow_no_year=.
# from
parser.parse("5.12", noyear=False) # None (deprecated)
# ↓
parser.parse("5.12", allow_no_year=False) # None (canonical)
Removal target: 2.0.
startSession() / endSession() → snake_case
The camelCase session-control methods were replaced with snake_case equivalents in 1.0.11.
# from
parser.startSession(["dt:date:date_1"]) # deprecated
parser.endSession()
# ↓
parser.start_session(["dt:date:date_1"])
parser.end_session()
Removal target: 2.0.
use_fingerprint=False → omit the parameter
The legacy 6-level filter (_filter_patterns_hierarchical) was
superseded by the fingerprint-based matcher (_filter_patterns_fingerprint)
in 1.0.14. The fingerprint path is the default and returns the same
results as the legacy path under every filter flag. Passing False is
deprecated and emits a DeprecationWarning.
# from
DateParser(use_fingerprint=False) # DeprecationWarning
# ↓
DateParser() # canonical; uses fingerprint path
Removal target: 2.0.
For contributors
If you're adding a new feature that obsoletes an existing API:
- Land the new API first (additive change).
- Update the old API to delegate to the new one and emit
DeprecationWarning(stacklevel=2). - Update the relevant
tests/to assert both code paths work and that the warning is emitted. - Add the deprecation to this page and
CHANGELOG.md. - Tag the removal version in the deprecation message
(
"...removed in 2.0").
For downstream consumers
If you see a DeprecationWarning from qddate:
- The message names the canonical replacement.
- The old API will work until the next major bump (2.0).
- Run
python -W error::DeprecationWarningin CI to catch new warnings.
Past deprecations
dateparserruntime dependency — moved to the[bench]optional extra (1.0.x).dillimport — removed fromdirty.py(1.0.x).__version__inqddate/patterns/__init__.py— removed (canonical location isqddate.__version__).