提交 9ca22405 编写于 作者: T Tzu-ping Chung

More clarification on the name

上级 65ffd338
......@@ -218,7 +218,8 @@ class RequiresPythonCandidate(Candidate):
@property
def name(self):
# type: () -> str
return "<Python>" # Avoid conflicting with the PyPI package "Python".
# Avoid conflicting with the PyPI package "Python".
return "<Python fom Requires-Python>"
@property
def version(self):
......
......@@ -35,10 +35,13 @@ class ExplicitRequirement(Requirement):
class NoMatchRequirement(Requirement):
"""A requirement that never matches anything.
Note: Similar to ExplicitRequirement, the caller should handle name
canonicalisation; this class does not perform it.
"""
def __init__(self, name):
# type: (str) -> None
self._name = canonicalize_name(name)
self._name = name
@property
def name(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册