Skip to content

Commit d0107a2

Browse files
authored
invert __contains__ logic for Any-/EmptySpecifier (#13)
1 parent 888fe35 commit d0107a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dep_logic/specifiers/special.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def is_empty(self) -> bool:
3636
return True
3737

3838
def __contains__(self, value: str) -> bool:
39-
return True
39+
return False
4040

4141

4242
class AnySpecifier(BaseSpecifier):
@@ -72,4 +72,4 @@ def is_any(self) -> bool:
7272
return True
7373

7474
def __contains__(self, value: str) -> bool:
75-
return False
75+
return True

0 commit comments

Comments
 (0)