summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2019-08-24 00:09:35 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2019-08-26 21:34:44 +0200
commitdbc2d7ec51cc2aec11367963f66989ad862b0d7f (patch)
tree9e6c1bf265d26d830a8227f2fd5f15d4099620d8
parent7688b54c4a6005a75301a2e6a477f402311a6a2d (diff)
downloadsemantic-version-dbc2d7ec51cc2aec11367963f66989ad862b0d7f.tar.gz
Add some docstrings.
-rw-r--r--semantic_version/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py
index 2b1a9b3..b44227e 100644
--- a/semantic_version/base.py
+++ b/semantic_version/base.py
@@ -681,6 +681,7 @@ class BaseSpec:
return None
def __contains__(self, version):
+ """Whether `version in self`."""
if isinstance(version, Version):
return self.match(version)
return False