901 value = pywikibot.input('Mysql query string:')
902 return MySQLPageGenerator(value, site=self.site)
903
904 def _handle_intersect(self, value: str) -> Literal[True]: 905 """Handle `-intersect` argument."""
906 self.intersect = True
907 return True
710 """Handle `-uncatcat` argument."""
711 return self.site.uncategorizedcategories()
712
713 def _handle_uncat(self, value: str) -> HANDLER_GEN_TYPE: 714 """Handle `-uncat` argument."""
715 return self.site.uncategorizedpages()
716
706 """Handle `-uncatfiles` argument."""
707 return self.site.uncategorizedimages()
708
709 def _handle_uncatcat(self, value: str) -> HANDLER_GEN_TYPE: 710 """Handle `-uncatcat` argument."""
711 return self.site.uncategorizedcategories()
712
702 value = pywikibot.input('What pageid do you want to use?')
703 return self.site.load_pages_from_pageids(value)
704
705 def _handle_uncatfiles(self, value: str) -> HANDLER_GEN_TYPE: 706 """Handle `-uncatfiles` argument."""
707 return self.site.uncategorizedimages()
708
456 :param parameters: plural parameters passed from other methods
457 :return: The message with the plural instances replaced
458 """
459 def static_plural_value(n: int) -> int:460 plural_rule = rule['plural']
461 assert not callable(plural_rule)
462 return plural_rule
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
def square(x, y=1):
return x * x
class MySubClass(MyClass):
def __init__(self, number):
self.value = 42 # argument `number` remains unused
def square(x):
return x * x
class MySubClass(MyClass):
def __init__(self, _):
self.value = 42