Function contains unused argument PYL-W0613
Anti-pattern
Major
4 days ago2 years old
Unused argument 'page'
103    def _select_action(page):
104        """Manage interactive choices."""
105
106        def create_new_title_change(page, new_title=None):107            """Change helper function."""
108            if new_title is None:
109                return pywikibot.input('New page name:')
Unused argument 'd'
2065            return str(d[site])
2066    else:
2067        # Use short format, just the language code
2068        def fmt(d, site):2069            return site.code
2070
2071    mods = mcomment = ''
Unused argument 'old_filename'
201
202        :return: the filename which was used to upload the image
203        """
204        def delete_source(old_filename, target_filename):205            """Delete source image or tag nowCommons template to it.
206
207            This function is called when upload to Commons was
Unused argument 'signum'
135willstop = False
136
137
138def _signal_handler(signum, frame) -> None:139    global willstop
140    if not willstop:
141        willstop = True
Unused argument 'frame'
135willstop = False
136
137
138def _signal_handler(signum, frame) -> None:139    global willstop
140    if not willstop:
141        willstop = True