diff --git a/src/pip/_internal/index/collector.py b/src/pip/_internal/index/collector.py index ef20da411b3..fc512b065ef 100644 --- a/src/pip/_internal/index/collector.py +++ b/src/pip/_internal/index/collector.py @@ -254,12 +254,11 @@ def parse_links(page: "IndexContent") -> Iterable[Link]: class IndexContent: """Represents one response (or page), along with its URL. - Args: - :param encoding: the encoding to decode the given content. - :param url: the URL from which the HTML was downloaded. - :param cache_link_parsing: whether links parsed from this page's url - should be cached. PyPI index urls should - have this set to False, for example. + :param encoding: the encoding to decode the given content. + :param url: the URL from which the HTML was downloaded. + :param cache_link_parsing: whether links parsed from this page's url + should be cached. PyPI index urls should + have this set to False, for example. """ content: bytes diff --git a/src/pip/_internal/locations/_sysconfig.py b/src/pip/_internal/locations/_sysconfig.py index 9dd802a3a22..ca860ea562c 100644 --- a/src/pip/_internal/locations/_sysconfig.py +++ b/src/pip/_internal/locations/_sysconfig.py @@ -1,4 +1,3 @@ -import dataclasses import logging import os import sys @@ -196,7 +195,7 @@ def get_scheme( converted_keys = {} for key in SCHEME_KEYS: converted_keys[key] = change_root(root, getattr(scheme, key)) - scheme = dataclasses.replace(scheme, **converted_keys) + scheme = Scheme(**converted_keys) return scheme