Commit Graph

2 Commits

Author SHA1 Message Date
Sebastián Ramírez b4c1d5ab70
Update tests to import Annotated from typing_extensions for Python < 3.9 (#9795) 2023-07-04 13:14:58 +02:00
Sebastián Ramírez b892664f25
♻️ Deprecate parameter `regex`, use `pattern` instead (#9786)
* 📝 Update docs to deprecate regex, recommend pattern

* ♻️ Update examples to use new pattern instead of regex

* 📝 Add new example with deprecated regex

* ♻️ Add deprecation notes and warnings for regex

*  Add tests for regex deprecation

*  Update tests for compatibility with Pydantic v1
2023-07-03 21:37:26 +02:00