diff options
author | Daniel Hahler <git@thequod.de> | 2020-01-10 19:53:57 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2020-01-16 16:11:39 +0100 |
commit | 4630e2725e84bb07fc0527c2c293b500dfe585a6 (patch) | |
tree | 33f3a916afda932befcf28fba5ce61e909d83017 /.coveragerc | |
parent | 715f56dfbc432fbf99b8ad668e86a5063de58250 (diff) | |
download | pytest-4630e2725e84bb07fc0527c2c293b500dfe585a6.tar.gz |
Use `TYPE_CHECKING` instead of `False`
This allows for e.g. Jedi to infer types (it checks the name).
It was only used to support Python 3.5.0/3.5.1, where this is is not
available in the `typing` module.
Ref: https://github.com/davidhalter/jedi/issues/1472
Uses `TYPE_CHECKING = False` in `_pytest.outcomes` to avoid having to
work around circular import.
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc index ed1fb9759..fc2321e87 100644 --- a/.coveragerc +++ b/.coveragerc @@ -24,3 +24,5 @@ exclude_lines = \#\s*pragma: no cover ^\s*raise NotImplementedError\b ^\s*return NotImplemented\b + + ^\s*if TYPE_CHECKING: |