From 95d2570cca83d20e7b31695ffbc61da63c7ee0e9 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 24 Feb 2018 07:45:54 -0500 Subject: Missed a detail of file_reporter in the docs --- coverage/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coverage/plugin.py') diff --git a/coverage/plugin.py b/coverage/plugin.py index db7ca0a..415246a 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -134,7 +134,8 @@ class CoveragePlugin(object): This will only be invoked if `filename` returns non-None from :meth:`file_tracer`. It's an error to return None from this method. - Returns a :class:`FileReporter` object to use to report on `filename`. + Returns a :class:`FileReporter` object to use to report on `filename`, + or the string `"python"` to have coverage.py treat the file as Python. """ _needs_to_implement(self, "file_reporter") -- cgit v1.2.1