diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-04 12:00:32 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-04 12:00:32 -0500 |
commit | 441823f18f705b8a79829cca36142a7f1511477b (patch) | |
tree | 73d5ceab054cc911b79e2e31c02504303ead1369 | |
parent | 131060464647cd4c96fe8b79936d463847e9c0df (diff) | |
download | python-coveragepy-git-441823f18f705b8a79829cca36142a7f1511477b.tar.gz |
fix: two typing tweaks
-rw-r--r-- | coverage/sqldata.py | 2 | ||||
-rw-r--r-- | doc/excluding.rst | 1 |
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 |