Skip to content

Commit

Permalink
#318: remove problem.get_standings()
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Feb 19, 2019
1 parent 5a6481d commit 42f9ecf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion onlinejudge/_implementation/command/get_standings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_standings(args: 'argparse.Namespace') -> None:
sys.exit(1)

# get standings
header, rows = problem.get_standings()
header, rows = problem.get_standings() # type: ignore

# print it
if args.format in ['csv', 'tsv']:
Expand Down
2 changes: 1 addition & 1 deletion onlinejudge/service/topcoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def submit_code(self, code: bytes, language_id: LanguageId, filename: Optional[s
log.failure('%s', messages)
raise SubmissionError('it may be a rate limit: ' + messages)

def get_standings(self, session: Optional[requests.Session] = None) -> onlinejudge.type.Standings:
def get_standings(self, session: Optional[requests.Session] = None):
session = session or utils.new_default_session()

header = None # type: Optional[List[str]]
Expand Down
3 changes: 0 additions & 3 deletions onlinejudge/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ def get_service(self) -> Service:
def get_input_format(self, session: Optional[requests.Session] = None) -> Optional[str]:
raise NotImplementedError

def get_standings(self, session: Optional[requests.Session] = None) -> Standings:
raise NotImplementedError

@classmethod
def from_url(self, s: str) -> Optional['Problem']:
pass
Expand Down

0 comments on commit 42f9ecf

Please sign in to comment.