-
Notifications
You must be signed in to change notification settings - Fork 94
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
#318 #317 add features to list contests and problems of AtCoder #325
Conversation
@@ -98,12 +100,154 @@ def _report_messages(cls, msgs: List[str], unexpected: bool = False) -> bool: | |||
log.failure('unexpected messages found') | |||
return bool(msgs) | |||
|
|||
def iterate_contests(self, lang: str = 'ja', session: Optional[requests.Session] = None) -> Generator['AtCoderContest', None, None]: | |||
assert lang in ('ja', 'en') # NOTE: "lang=ja" is required to see some Japanese-local contests. However you can use "lang=en" to see the English names of contests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このNOTEは関数全体の注釈のような気もしていて関数のdocにしたほうがいいかもと思いましたが、どうでしょう?
pydocにすると、autogenされたrstファイルに説明ものるようになるんでしたっけ。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この指摘はまったく正しいのですが、後のコミットで docstring 化してるので見過してください
最終的には https://online-judge-tools.readthedocs.io/en/develop/onlinejudge.service.atcoder.html#onlinejudge.service.atcoder.AtCoderService.iterate_contests という形で document に乗ります
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
これも Toph とは衝突しないのでよさそうなら merge してください |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 |
コンテストの列挙と問題の列挙ができるようにします