2020@attr .s (frozen = True , order = False , eq = True , hash = True )
2121class VersionRange :
2222 """
23- Base version range class. Subclasses must provide implememt .
23+ Base version range class. Subclasses must provide implement .
2424 A VersionRange represents a list of constraints on the versions "timeline"
2525 of a package.
2626 """
@@ -38,7 +38,7 @@ class VersionRange:
3838 # PypiVersion. Subclasses MUST provide this.
3939 version_class = None
4040
41- # A list of lists of VersionConstraint that are signposts on the versions
41+ # A tuple of VersionConstraint that are signposts on the versions
4242 # timeline
4343 constraints = attr .ib (type = tuple , default = attr .Factory (tuple ))
4444
@@ -67,7 +67,7 @@ def from_natives(cls, strings):
6767 def to_native (self , * args , ** kwargs ):
6868 """
6969 Return a native range string for this VersionRange. Subclasses can
70- implement. Opetional ``args`` and ``kwargs`` allow subclass to require
70+ implement. Optional ``args`` and ``kwargs`` allow subclass to require
7171 extra arguments (such as a package name that some scheme may require
7272 like for deb and rpm.)
7373 """
@@ -803,7 +803,7 @@ def from_native(cls, string):
803803 vend = VersionConstraint (comparator = "<" , version = end_version )
804804 constraints .extend ([vstart , vend ])
805805 else :
806- # mainline branch ranges are resolved to a singel constraint
806+ # mainline branch ranges are resolved to a single constraint
807807 version = semantic_version .Version .coerce (vs )
808808 constraint = VersionConstraint (comparator = ">=" , version = version )
809809 constraints .append (constraint )
0 commit comments