From 6a580576ec360d48ec89c77cee8e5d7edf8d4939 Mon Sep 17 00:00:00 2001 From: Athanasius <Athanasius@miggy.org> Date: Thu, 8 Dec 2022 11:29:49 +0000 Subject: [PATCH] mpyp: Always use --check-untyped-defs `mypy EDMarketConnector.py` was throwing a warning: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] for some things. Bizarrely including e.g. play_bad: bool = False --- .mypy.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.mypy.ini b/.mypy.ini index f9ec5997..38afbb67 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -2,4 +2,8 @@ follow_imports = skip ignore_missing_imports = True scripts_are_modules = True +; Without this bare `mypy <file>` may get warnings for e.g. +; `<var> = <value>` +; i.e. no typing info. +check-untyped-defs = True ; platform = darwin