__init__
method from the base class not called PYL-W0231309
310 """Dummy class to use instead of :py:obj:`data.api.Request`."""
311
312 def __init__(self, *args, **kwargs):313 """Initializer."""
314 _original_Request.__init__(self, *args, **kwargs)
315
158
159 _namespaces = {2: ['User']}
160
161 def __init__(self):162 self._user = 'anon'
163 pywikibot.site.BaseSite.__init__(self, 'mock', MockFamily())
164 self._siteinfo = DummySiteinfo({'case': 'first-letter'})
402
403 """Site interface to prevent sites being loaded."""
404
405 def __init__(self, code, fam=None, user=None): 406 """Initializer."""
407 raise SiteDefinitionError(
408 f'Loading site {fam}:{code} during dry test not permitted')
97
98 """A Request cache entry."""
99
100 def __init__(self, directory: str, filename: str):101 """Initializer."""
102 self.directory = directory
103 self.filename = filename
257 '|&#x[0-9A-Fa-f]+;'
258 )
259
260 def __init__(self, text, source=None, default_namespace=0) -> None:261 """
262 Initializer.
263
The ancestor class method has an init method which is not called by the derived class. This can cause unintended consequences.