Skip to content

Commit

Permalink
Add version properties to MavenVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dawson committed Dec 9, 2020
1 parent e8fd64d commit 5d49339
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mozilla_version/maven.py
Expand Up @@ -54,3 +54,21 @@ def _compare(self, other):
return -1
else:
return 0

@property
def is_beta(self):
"""Maven versions can never be Beta."""
return False

@property
def is_release_candidate(self):
"""Maven version can never be Release Candidates."""
return False

@property
def is_release(self):
"""Return `True` if the others are both False."""
return not any((
self.is_beta, self.is_release_candidate,
))

0 comments on commit 5d49339

Please sign in to comment.