pyproject.toml, pyrightconfig.json: Require @override
Add mypy's explicit-override error code and pyrightconfig's reportImplicitOverride "error" directive. This requires all methods that override base class methods to be decorated with @override from typing. The change complements the previous commit, which added exactly that decorator to all relevant methods. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5fa008be5a
commit
df5785cefd
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
{mypypath}
|
||||
|
||||
enable_error_code = "explicit-override"
|
||||
|
||||
[tool.isort]
|
||||
|
||||
lines_between_sections = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue