Imzachjohnson / clickupython

A client for working with the ClickUp API V2

Home Page:https://clickupython.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error validade type priority

bi-sumicity opened this issue · comments

pydantic\main.py", line 406, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for Task priority value is not a valid integer (type=type_error.integer)

I managed to fix it by changing the int type to Any

I just hit the same issue, thanks @bi-sumicity for the pointer

in models.py line 624 I made this change:
priority: Priority = None
from
priority: int = None

having this issue currently, any fix? don't see the lines of code in models.py that I would need to change

Following the @davenorthcreek comment i fixed the line. Could be nice to open a PR for this fix.

image

Seems that is fixed in main:

ef868fc

But latest release doesn't has this changes in it.

For anyone having this trouble (I was also having this bug when using page parameter in the get_tasks method) if you install directly from this repo, the bug is fixed in main branch. Just do:

pip uninstall clickupython
pip install git+https://github.com/Imzachjohnson/clickupython.git

For some reason @Imzachjohnson has not made any release since almost two years.