Skip to content

Commit

Permalink
tests: add typeguard 4 compatibility
Browse files Browse the repository at this point in the history
The install_import_hook import changed in version 4.
  • Loading branch information
jelly committed Jun 30, 2023
1 parent d6f264b commit cd50197
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# pylint: disable=missing-function-docstring,missing-module-docstring
from typeguard import typechecked
from typeguard.importhook import install_import_hook
try:
from typeguard.importhook import install_import_hook
except ImportError:
from typeguard import install_import_hook

from pytest_container import add_extra_run_and_build_args_options
from pytest_container import add_logging_level_options
Expand Down

0 comments on commit cd50197

Please sign in to comment.