Hook up recently introduced options to all listers

Hopefully one day we'll be able to replace all of this mess with PEP692
TypedDict kwargs, but that's only on track for Python 3.12.
This commit is contained in:
Nicolas Dandrimont 2022-12-05 16:33:45 +01:00
parent 5ea79ee3e0
commit e785e67315
31 changed files with 195 additions and 3 deletions

View file

@ -70,12 +70,18 @@ class PyPILister(Lister[PyPIListerState, PackageListPage]):
self,
scheduler: SchedulerInterface,
credentials: Optional[CredentialsType] = None,
max_origins_per_page: Optional[int] = None,
max_pages: Optional[int] = None,
enable_origins: bool = True,
):
super().__init__(
scheduler=scheduler,
url=self.PACKAGE_LIST_URL,
instance=self.INSTANCE,
credentials=credentials,
max_origins_per_page=max_origins_per_page,
max_pages=max_pages,
enable_origins=enable_origins,
)
# used as termination condition and if useful, becomes the new state when the