-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
First of all, thank you for this great library!
I stumbled across the following behaviour:
'1.0.0' in EmptySpecifier()
>> True
'1.0.0' in AnySpecifier()
>> Falsesrc/dep_logic/specifiers/special.py:
class EmptySpecifier(BaseSpecifier):
# other code deleted for readability
def __contains__(self, value: str) -> bool:
return True
class AnySpecifier(BaseSpecifier):
# other code deleted for readability
def __contains__(self, value: str) -> bool:
return FalseI'm wondering whether this is correct, because an empty specifier, as the name suggests, shouldn't contain any version and therefore return always False?
On the other hand the AnySpecifier should, as the name suggests, contain any version and therefore always return True?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels