Skip to content

Commit 40d76fb

Browse files
authored
Implement Specifiers and SpecifierSets filtering using ranges (#1120)
1 parent ff14df9 commit 40d76fb

5 files changed

Lines changed: 1028 additions & 804 deletions

File tree

benchmarks/specifiers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ def _make_cold(self, spec: SpecifierSet) -> None:
6060
spec._canonicalized = False
6161
if hasattr(spec, "_resolved_ops"):
6262
spec._resolved_ops = None
63+
if hasattr(spec, "_ranges"):
64+
spec._ranges = None
65+
if hasattr(spec, "_is_unsatisfiable"):
66+
spec._is_unsatisfiable = None
6367
for sp in spec._specs:
6468
sp._spec_version = None
6569
if hasattr(sp, "_wildcard_split"):
6670
sp._wildcard_split = None
71+
if hasattr(sp, "_ranges"):
72+
sp._ranges = None
6773

6874
@add_attributes(pretty_name="SpecifierSet constructor")
6975
def time_constructor(self) -> None:

0 commit comments

Comments
 (0)