|
17 | 17 | import urllib.parse |
18 | 18 | import zipfile |
19 | 19 | from collections.abc import Iterator, Mapping, Sequence |
20 | | -from dataclasses import dataclass |
| 20 | +from dataclasses import dataclass, field |
21 | 21 | from http import HTTPStatus |
22 | 22 | from pathlib import Path |
23 | 23 | from typing import Annotated, Any, ClassVar, NamedTuple |
@@ -105,8 +105,8 @@ def _best_effort_version(version: VersionString) -> packaging.version.Version: |
105 | 105 | class PypiInfo: |
106 | 106 | distribution: str |
107 | 107 | pypi_root: str |
108 | | - releases: dict[VersionString, list[ReleaseDownload]] |
109 | | - info: dict[str, Any] |
| 108 | + releases: dict[VersionString, list[ReleaseDownload]] = field(repr=False) |
| 109 | + info: dict[str, Any] = field(repr=False) |
110 | 110 |
|
111 | 111 | def get_release(self, *, version: VersionString) -> PypiReleaseDownload: |
112 | 112 | # prefer wheels, since it's what most users will get / it's pretty easy to mess up MANIFEST |
@@ -244,7 +244,7 @@ def get_github_api_headers() -> Mapping[str, str]: |
244 | 244 | @dataclass |
245 | 245 | class GithubInfo: |
246 | 246 | repo_path: str |
247 | | - tags: list[dict[str, Any]] |
| 247 | + tags: list[dict[str, Any]] = field(repr=False) |
248 | 248 |
|
249 | 249 |
|
250 | 250 | async def get_github_repo_info(session: aiohttp.ClientSession, stub_info: StubInfo) -> GithubInfo | None: |
@@ -323,7 +323,7 @@ def _plural_s(num: int, /) -> str: |
323 | 323 | return "s" if num != 1 else "" |
324 | 324 |
|
325 | 325 |
|
326 | | -@dataclass |
| 326 | +@dataclass(repr=False) |
327 | 327 | class DiffAnalysis: |
328 | 328 | MAXIMUM_NUMBER_OF_FILES_TO_LIST: ClassVar[int] = 7 |
329 | 329 | py_files: list[FileInfo] |
|
0 commit comments