summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-02-04 12:00:32 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-02-04 12:00:32 -0500
commit441823f18f705b8a79829cca36142a7f1511477b (patch)
tree73d5ceab054cc911b79e2e31c02504303ead1369
parent131060464647cd4c96fe8b79936d463847e9c0df (diff)
downloadpython-coveragepy-git-441823f18f705b8a79829cca36142a7f1511477b.tar.gz
fix: two typing tweaks
-rw-r--r--coverage/sqldata.py2
-rw-r--r--doc/excluding.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index 1cb8abe4..77577437 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -596,7 +596,7 @@ class CoverageData(AutoReprMixin):
"""
self.touch_files([filename], plugin_name)
- def touch_files(self, filenames: Iterable[str], plugin_name: Optional[str] = None) -> None:
+ def touch_files(self, filenames: Collection[str], plugin_name: Optional[str] = None) -> None:
"""Ensure that `filenames` appear in the data, empty if needed.
`plugin_name` is the name of the plugin responsible for these files.
diff --git a/doc/excluding.rst b/doc/excluding.rst
index aa6c6298..315d4e29 100644
--- a/doc/excluding.rst
+++ b/doc/excluding.rst
@@ -95,6 +95,7 @@ For example, here's a list of exclusions I've used::
raise NotImplementedError
if 0:
if __name__ == .__main__.:
+ if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod