Skip to content

Commit

Permalink
More precise comment for Rule.__add__
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Sep 13, 2021
1 parent b40291c commit b35c21a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/strava_gear/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ class Rule:

def __add__(self, other) -> Rule:
"""
Combine two rules. The second rule's since must be later than the first. Component mappings
in the second rule then override those in the first. Additionally, components newly assigned
to another bike are automatically removed from the old one.
Combine two rules. The second rule's since must be equal or later than the first.
Component mappings in the second rule then override those in the first.
Additionally, components newly assigned to another bike are automatically removed
from the old one.
"""
if not isinstance(other, Rule):
return NotImplemented
Expand Down

0 comments on commit b35c21a

Please sign in to comment.