Mark AssertionRewritingHook as implementing importlib.abc.Loader

It implements the required methods. This is useful for typing but also a
nice indicator.
This commit is contained in:
Ran Benita 2020-02-29 16:22:18 +02:00
parent f10ab021e2
commit 2f60548e08
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ PYC_EXT = ".py" + (__debug__ and "c" or "o")
PYC_TAIL = "." + PYTEST_TAG + PYC_EXT
class AssertionRewritingHook(importlib.abc.MetaPathFinder):
class AssertionRewritingHook(importlib.abc.MetaPathFinder, importlib.abc.Loader):
"""PEP302/PEP451 import hook which rewrites asserts."""
def __init__(self, config):