Esempio n. 1
0
 def __new__(cls, *args: Any,
             **kwargs: Any) -> 'mypy.plugin.Plugin':  # type: ignore
     from mypy.plugin import WrapperPlugin
     plugin = object.__new__(cls)
     plugin.__init__(*args, **kwargs)
     return WrapperPlugin(plugin)
Esempio n. 2
0
 def __new__(cls, *args: Any, **kwargs: Any) -> 'mypy.plugin.Plugin':
     from mypy.plugin import WrapperPlugin
     plugin = object.__new__(cls)
     plugin.__init__(*args, **kwargs)
     return WrapperPlugin(plugin)