Skip to content

Commit e9b9d09

Browse files
authored
Fix docs and docs CI after #897 landed (#926)
1 parent 0d3c4ac commit e9b9d09

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
paths:
66
- ".github/workflows/docs.yml"
77
- "docs/**"
8+
- "src/**"
89
push:
910
paths:
1011
- ".github/workflows/docs.yml"
1112
- "docs/**"
13+
- "src/**"
1214

1315
concurrency:
1416
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}

src/packaging/specifiers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def __contains__(self, item: str | Version) -> bool:
510510
>>> "1.0.0" in Specifier(">=1.2.3")
511511
False
512512
>>> "1.3.0a1" in Specifier(">=1.2.3")
513-
False
513+
True
514514
>>> "1.3.0a1" in Specifier(">=1.2.3", prereleases=True)
515515
True
516516
"""
@@ -534,7 +534,7 @@ def contains(self, item: UnparsedVersion, prereleases: bool | None = None) -> bo
534534
>>> Specifier(">=1.2.3").contains("1.0.0")
535535
False
536536
>>> Specifier(">=1.2.3").contains("1.3.0a1")
537-
False
537+
True
538538
>>> Specifier(">=1.2.3", prereleases=False).contains("1.3.0a1")
539539
False
540540
>>> Specifier(">=1.2.3").contains("1.3.0a1")
@@ -856,7 +856,7 @@ def __contains__(self, item: UnparsedVersion) -> bool:
856856
>>> "1.0.1" in SpecifierSet(">=1.0.0,!=1.0.1")
857857
False
858858
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1")
859-
False
859+
True
860860
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True)
861861
True
862862
"""
@@ -921,7 +921,7 @@ def filter(
921921
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", Version("1.4")]))
922922
['1.3', <Version('1.4')>]
923923
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.5a1"]))
924-
["1.5a1"]
924+
['1.5a1']
925925
>>> list(SpecifierSet(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
926926
['1.3', '1.5a1']
927927
>>> list(SpecifierSet(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))

0 commit comments

Comments
 (0)