diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 17:05:06 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 17:11:07 -0500 |
| commit | 212f652076bb5f5c464db49576d927bc30ef0e1e (patch) | |
| tree | f3a525ae225724e9bdb55d4b276387552bd24003 /coverage/tomlconfig.py | |
| parent | cceadff1d3d33c046042b606d40e01f41e23ec5d (diff) | |
| download | python-coveragepy-git-212f652076bb5f5c464db49576d927bc30ef0e1e.tar.gz | |
test: run mypy on config.py
Diffstat (limited to 'coverage/tomlconfig.py')
| -rw-r--r-- | coverage/tomlconfig.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index 49282e92..a2d4c6e8 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -119,10 +119,14 @@ class TomlConfigParser: return False return option in data - def has_section(self, section): + def real_section(self, section): name, _ = self._get_section(section) return name + def has_section(self, section): + name, _ = self._get_section(section) + return bool(name) + def options(self, section): _, data = self._get_section(section) if data is None: |
