Skip to content

Commit 9066584

Browse files
authored
Merge pull request #11344 from sbidoul/static-type-error-sbi
2 parents 8dc39f0 + de49b52 commit 9066584

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/pip/_internal/index/collector.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,14 +443,7 @@ def _make_index_content(
443443
)
444444

445445

446-
def _get_index_content(
447-
link: Link, session: Optional[PipSession] = None
448-
) -> Optional["IndexContent"]:
449-
if session is None:
450-
raise TypeError(
451-
"_get_index_content() missing 1 required keyword argument: 'session'"
452-
)
453-
446+
def _get_index_content(link: Link, *, session: PipSession) -> Optional["IndexContent"]:
454447
url = link.url.split("#", 1)[0]
455448

456449
# Check for VCS schemes that do not support lookup as web pages.

0 commit comments

Comments
 (0)