Skip to content

Commit

Permalink
Revert "feat: Support project.allow_assignment"
Browse files Browse the repository at this point in the history
This reverts commit 1f73995.
  • Loading branch information
amix committed Apr 11, 2024
1 parent 1f73995 commit fde6355
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/data/test_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"is_favorite": False,
"is_inbox_project": True,
"is_team_inbox": True,
"allow_assignment": False,
"url": "https://todoist.com/showProject?id=1234",
"view_style": "list",
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def test_project_from_dict():
assert project.order == sample_data["order"]
assert project.parent_id == sample_data["parent_id"]
assert project.view_style == sample_data["view_style"]
assert project.allow_assignment == sample_data["allow_assignment"]


def test_section_from_dict():
Expand Down
2 changes: 0 additions & 2 deletions todoist_api_python/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class Project:
is_inbox_project: bool
is_shared: bool
is_team_inbox: bool
allow_assignment: bool
name: str
order: int
parent_id: str | None
Expand All @@ -34,7 +33,6 @@ def from_dict(cls, obj):
is_inbox_project=obj.get("is_inbox_project"),
is_shared=obj["is_shared"],
is_team_inbox=obj.get("is_team_inbox"),
allow_assignment=obj["allow_assignment"],
name=obj["name"],
order=obj.get("order"),
parent_id=obj.get("parent_id"),
Expand Down

0 comments on commit fde6355

Please sign in to comment.