diff options
Diffstat (limited to 'semantic_version/base.py')
-rw-r--r-- | semantic_version/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py index 93291e7..48fdfbf 100644 --- a/semantic_version/base.py +++ b/semantic_version/base.py @@ -429,6 +429,8 @@ class Version: return 0 def __hash__(self): + # We don't include 'partial', since this is strictly equivalent to having + # at least a field being `None`. return hash((self.major, self.minor, self.patch, self.prerelease, self.build)) def __cmp__(self, other): |