|
|
@ -88,6 +88,7 @@ class Hint:
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def package(self):
|
|
|
|
def package(self):
|
|
|
|
if self.packages:
|
|
|
|
if self.packages:
|
|
|
|
|
|
|
|
assert len(self.packages) == 1, self.packages
|
|
|
|
return self.packages[0].package
|
|
|
|
return self.packages[0].package
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
@ -95,6 +96,7 @@ class Hint:
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def version(self):
|
|
|
|
def version(self):
|
|
|
|
if self.packages:
|
|
|
|
if self.packages:
|
|
|
|
|
|
|
|
assert len(self.packages) == 1, self.packages
|
|
|
|
return self.packages[0].version
|
|
|
|
return self.packages[0].version
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|