core/lister: Make the tasks take an explicit lister_args argument
Avoid eating *all* arbitrary arguments and passing them along to the new_lister method.
This commit is contained in:
parent
d08ab241f5
commit
d88f1b60c9
6 changed files with 41 additions and 37 deletions
|
@ -10,8 +10,8 @@ from .lister import GitHubLister
|
|||
|
||||
|
||||
class GitHubListerTask(ListerTaskBase):
|
||||
def new_lister(self):
|
||||
return GitHubLister(api_baseurl='https://api.github.com')
|
||||
def new_lister(self, *, api_baseurl='https://api.github.com'):
|
||||
return GitHubLister(api_baseurl=api_baseurl)
|
||||
|
||||
|
||||
class IncrementalGitHubLister(GitHubListerTask, IndexingDiscoveryListerTask):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue