Open delfick opened 1 week ago
Hi, it appears that TypeChecker.fail doesn't match the CheckerPluginInterface interface
CheckerPluginInterface
https://github.com/python/mypy/blob/d39f0234a18762a9b261a28763c7bea706633ce7/mypy/plugin.py#L242
@abstractmethod def fail( self, msg: str | ErrorMessage, ctx: Context, *, code: ErrorCode | None = None ) -> None:
https://github.com/python/mypy/blob/d39f0234a18762a9b261a28763c7bea706633ce7/mypy/checker.py#L7184
def fail( self, msg: str | ErrorMessage, context: Context, *, code: ErrorCode | None = None ) -> None:
For some reason the implementation names ctx as context.
ctx
context
Hi, it appears that TypeChecker.fail doesn't match the
CheckerPluginInterface
interfacehttps://github.com/python/mypy/blob/d39f0234a18762a9b261a28763c7bea706633ce7/mypy/plugin.py#L242
https://github.com/python/mypy/blob/d39f0234a18762a9b261a28763c7bea706633ce7/mypy/checker.py#L7184
For some reason the implementation names
ctx
ascontext
.