Skip to content

Conversation

@rikunosuke
Copy link
Contributor

対応したこと

download_dataset_objects / get_dataset_objects で検索条件が同じになるように修正した。
API側でロジックを統一したため

@rikunosuke rikunosuke self-assigned this Jun 11, 2024
offset: int,
limit: int,
version: str,
revision_id: str,
Copy link
Contributor

Choose a reason for hiding this comment

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

@rikunosuke 4016行目でif文でチェックしているということは、ここもOptionalですかね?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@takuya-shimada
Python の Optional[]None が来る可能性がある、を指しています。型的には str のみを期待して、4016行目は if revision_id != "": を確認している、という意味になります!

class DatasetObjectGetQuery(TypedDict, total=False):
dataset: str
version: str
revisionId: str
Copy link
Contributor

Choose a reason for hiding this comment

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

ここもOptional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Python の Optional[] は None が来る可能性がある、を指しています。revisionId は値がある場合は全て str なので、この Optional はつけないが正しいはずです!

@takuya-shimada
Copy link
Contributor

今回の修正と関係ないんですが、__init__.pyrebisionというtypoがあるのでついでに修正してもらえると有り難いです 😅

Copy link
Contributor

@takuya-shimada takuya-shimada left a comment

Choose a reason for hiding this comment

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

LGTMです。
(今回の修正と関係ないですが)テストが無いのが不安ですが、一応軽く動作確認しました🌞

@takuya-shimada takuya-shimada merged commit 766405f into main Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants