From e09de83dfaa21276c2c9d6105a09ba36e542ea23 Mon Sep 17 00:00:00 2001 From: Vince Broz Date: Sun, 22 May 2022 12:49:42 -0400 Subject: [PATCH] Upgrade pydantic Resolves issue found when using improved type annotations. Looks like this may be the cause: https://github.com/samuelcolvin/pydantic/issues/2060 $ ./update_prevalence.py Traceback (most recent call last): File "/Users/broz/src/microCOVID/./update_prevalence.py", line 367, in class Place(pydantic.BaseModel): File "/Users/broz/src/microCOVID/.venv/lib/python3.10/site-packages/pydantic/main.py", line 299, in __new__ fields[ann_name] = ModelField.infer( File "/Users/broz/src/microCOVID/.venv/lib/python3.10/site-packages/pydantic/fields.py", line 411, in infer return cls( File "/Users/broz/src/microCOVID/.venv/lib/python3.10/site-packages/pydantic/fields.py", line 342, in __init__ self.prepare() File "/Users/broz/src/microCOVID/.venv/lib/python3.10/site-packages/pydantic/fields.py", line 451, in prepare self._type_analysis() File "/Users/broz/src/microCOVID/.venv/lib/python3.10/site-packages/pydantic/fields.py", line 604, in _type_analysis self.type_ = get_args(self.type_)[1] IndexError: tuple index out of range $ --- requirements-manual.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-manual.txt b/requirements-manual.txt index a37145c857..b0bbcd0952 100644 --- a/requirements-manual.txt +++ b/requirements-manual.txt @@ -1,4 +1,4 @@ -pydantic==1.8.2 +pydantic==1.9.1 requests==2.25.1 types_requests==2.27.25 black==21.8b0