From 6bc043981f6548852844ea6b16d5ef7d37c0417d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 11 Feb 2023 17:59:25 -0500 Subject: refactor: use placebos instead of non-existent attributes Details of the problem and thought process: https://nedbatchelder.com/blog/202302/late_initialization_with_mypy.html --- coverage/sqldata.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/sqldata.py') diff --git a/coverage/sqldata.py b/coverage/sqldata.py index 9aa2b129..bb26e4d5 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -212,6 +212,8 @@ class CoverageData(AutoReprMixin): """ + _real = True # to distinguish from a placebo in control.py + def __init__( self, basename: Optional[str] = None, -- cgit v1.2.1