From 76b7d87f3eea4d6faa33e1b090246e5e566fd632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20=C5=81ukasiak?= Date: Fri, 5 Jan 2024 10:45:07 +0100 Subject: [PATCH 1/2] version_info moved Getting rid of warning: pydantic/pydantic/_migration.py:283: UserWarning: `pydantic.utils:version_info` has been moved to `pydantic.version:version_info`. --- docs/contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing.md b/docs/contributing.md index a3ec77ae9d..ce3bb5c060 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -7,7 +7,7 @@ vulnerability, please see our [security policy](https://github.com/pydantic/pyda To make it as simple as possible for us to help you, please include the output of the following call in your issue: ```bash -python -c "import pydantic.utils; print(pydantic.utils.version_info())" +python -c "import pydantic.version; print(pydantic.version.version_info())" ``` If you're using Pydantic prior to **v1.3** (when `version_info()` was added), please manually include OS, Python version and pydantic version. From c9c18f12ff1a4d26f90fbd02f10b2cd0782826ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20=C5=81ukasiak?= Date: Fri, 5 Jan 2024 10:58:39 +0100 Subject: [PATCH 2/2] Update contributing.md Added instructions for versions between 1.3 and 2.0. --- docs/contributing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/contributing.md b/docs/contributing.md index ce3bb5c060..4d6dfc6eb1 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -9,6 +9,10 @@ To make it as simple as possible for us to help you, please include the output o ```bash python -c "import pydantic.version; print(pydantic.version.version_info())" ``` +If you're using Pydantic prior to **v2.0** please use: +```bash +python -c "import pydantic.utils; print(pydantic.utils.version_info())" +``` If you're using Pydantic prior to **v1.3** (when `version_info()` was added), please manually include OS, Python version and pydantic version.