Skip to content

Commit

Permalink
#464: workaround for Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Aug 18, 2019
1 parent 7e83202 commit 0cd5fb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion onlinejudge/service/atcoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def list_problem_contents(self, *, session: Optional[requests.Session] = None) -
def list_problems(self, *, session: Optional[requests.Session] = None) -> 'List[AtCoderProblem]': # type: ignore
return [content.problem for content in self.list_problem_contents(session=session)]

# yapf: disable
def iterate_submission_contents_where(
self,
*,
Expand All @@ -320,7 +321,9 @@ def iterate_submission_contents_where(
lang: Optional[str] = None,
pages: Optional[Iterator[int]] = None,
session: Optional[requests.Session] = None,
) -> Iterator['AtCoderSubmissionContentPartial']:
) -> Iterator['AtCoderSubmissionContentPartial']:
# TODO: in Python 3.5 with "*", the closing paren ")" must be indented
# yapf: enable
"""
:note: If you use certain combination of options, then the results may not correct when there are new submissions while crawling.
:param status: must be one of `AC`, `WA`, `TLE`, `MLE`, `RE`, `CLE`, `OLE`, `IE`, `WJ`, `WR`, or `Judging`
Expand Down

0 comments on commit 0cd5fb9

Please sign in to comment.