summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-02-11 17:59:25 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-02-11 17:59:25 -0500
commit6bc043981f6548852844ea6b16d5ef7d37c0417d (patch)
tree5d10b3c3063feae47d909d2b722d3ff8624a49ae /coverage/sqldata.py
parent151d3a74857b174ee4d852b98a0e1a7ef4f73427 (diff)
downloadpython-coveragepy-git-6bc043981f6548852844ea6b16d5ef7d37c0417d.tar.gz
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
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r--coverage/sqldata.py2
1 files changed, 2 insertions, 0 deletions
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,