Skip to content

Commit

Permalink
Update activity model and bump version to 1.11.0
Browse files Browse the repository at this point in the history
Refactored the `added` field in the activity model to use `object` instead of a typed list. Removed an unused typing import and updated the project version in `pyproject.toml` to reflect these changes.
  • Loading branch information
meanmail committed Jan 16, 2025
1 parent f4b6528 commit a3fb6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion youtrack/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "youtrack"
version = "1.10.0"
version = "1.11.0"
description = ""
authors = [
{ name = "Hyperskill Team" }
Expand Down
4 changes: 1 addition & 3 deletions youtrack/youtrack/models/activity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field

from youtrack.models.common import MillisecondsDatetime # noqa: TC001
Expand All @@ -11,4 +9,4 @@ class YouTrackActivityItem(BaseModel):
id: str
timestamp: MillisecondsDatetime | None = None
target_member: str | None = Field(alias="targetMember", default=None)
added: list[dict[str, Any]] | None = None
added: object | None = None

0 comments on commit a3fb6d5

Please sign in to comment.