Skip to content

Commit 2d80c8a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03fe0ec commit 2d80c8a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
import shutil
44
import sys
55
from contextlib import contextmanager
6-
from typing import Callable
6+
from typing import TYPE_CHECKING
77

88
import pytest
99
from click.testing import CliRunner
1010
from pytask import storage
1111

1212
from pytask_stata.config import STATA_COMMANDS
1313

14+
if TYPE_CHECKING:
15+
from collections.abc import Callable
16+
1417
needs_stata = pytest.mark.skipif(
1518
next(
1619
(executable for executable in STATA_COMMANDS if shutil.which(executable)), None

0 commit comments

Comments
 (0)