Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataclasses-jsonfireの許容するバージョンの範囲を広げました #139

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anno3d/model/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def camelcase(cls: Type[A]) -> Type[A]:
cls.dataclass_json_config = config(letter_case=LetterCase.CAMEL)["dataclasses_json"] # type: ignore[assignment]
cls.dataclass_json_config = config(letter_case=LetterCase.CAMEL)["dataclasses_json"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataclasses-jsonを最新バージョンにしたことで、mypyのエラーが出なくなったのでtype: ignoreコメントを削除しました。


# 受け取ったクラスはそのまま返す
return cls
Expand Down
64 changes: 23 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ packages = [
[tool.poetry.dependencies]
python = "^3.9"
annofabapi = ">=0.71.1"
dataclasses-json = "^0.5.7"
fire = "^0.3.1"
dataclasses-json = ">=0.5.7,<1"
fire = ">=0.3.1,<1"
more-itertools = "^8.5.0"
numpy = "^1.23.0"
scipy = "^1.9.0"
Expand Down