Skip to content

Commit 4d959d6

Browse files
committed
update docstring formatting
1 parent 149f268 commit 4d959d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compare50/_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def rank(submissions, archive_submissions, ignored_files, pass_, n=50):
5353

5454

5555
def compare(scores, ignored_files, pass_):
56-
"""
56+
r"""
5757
:param scores: Scored submission pairs to be compared more granularly
5858
:type scores: [:class:`compare50.Score`]
5959
:param ignored_files: files containing distro code
@@ -155,7 +155,7 @@ def expand(span_matches, tokens_a, tokens_b):
155155
:param tokens_b: :param tokens_a: the tokens of the file corresponding to the first \
156156
element of each ``span_match``
157157
:type tokens_b: [:class:`compare50.Token`]
158-
:returns: A new list of maximially expanded span pairs
158+
:returns: A new list of maximally expanded span pairs
159159
:rtype: [(:class:`compare50.Span`, :class:`compare50.Span`)]
160160
161161
Expand all span matches. This is useful when e.g. two spans in two different files

compare50/_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ class Comparator(metaclass=abc.ABCMeta):
6262
"""
6363
@abc.abstractmethod
6464
def score(self, submissions, archive_submissions, ignored_files):
65-
"""
65+
r"""
6666
Given a list of submissions, a list of archive submissions, and a set of distro
6767
files, return a list of :class:`compare50.Score`\ s for each submission pair.
6868
"""
6969
pass
7070

7171
@abc.abstractmethod
7272
def compare(self, scores, ignored_files):
73-
"""
73+
r"""
7474
Given a list of scores and a list of distro files, perform an in-depth
7575
comparison of each submission pair and return a corresponding list of
7676
:class:`compare50.Comparison`\ s
@@ -261,7 +261,7 @@ def _raw_contents(self):
261261

262262
@attr.s(slots=True)
263263
class Comparison:
264-
"""
264+
r"""
265265
:ivar sub_a: the first submission
266266
:ivar sub_b: the second submission
267267
:ivar span_matches: a list of pairs of matching :class:`compare50.Span`\ s, wherein \

0 commit comments

Comments
 (0)