diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-13 18:29:25 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-14 05:32:26 -0500 |
commit | 026d924e6d9449c632b1fec0c1f82f4f867e9724 (patch) | |
tree | 0a4c114ab7fceed7e2b67078105140541ea0457d /coverage/sqldata.py | |
parent | d06ace282bf26c5c7f3becb21db0cdd028ec0d9a (diff) | |
download | python-coveragepy-git-026d924e6d9449c632b1fec0c1f82f4f867e9724.tar.gz |
refactor: no placebos, use true Optional
For objects that truly might not exist, use Optional. Some objects will
always exist eventually, and for those we have some null implementation
standins to use without making new placebo classes.
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r-- | coverage/sqldata.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py index 15b30ae9..42cf4501 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -212,8 +212,6 @@ class CoverageData(AutoReprMixin): """ - _real = True # to distinguish from a placebo in control.py - def __init__( self, basename: Optional[FilePath] = None, |