Skip to content

Commit ff4c3b2

Browse files
committed
main: add missing import importlib.util
Used in `resolve_collection_argument`. It's implicitly imported by some other import, but some type checkers don't recognize this.
1 parent 98b008f commit ff4c3b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import fnmatch
66
import functools
77
import importlib
8+
import importlib.util
89
import os
910
from pathlib import Path
1011
import sys

0 commit comments

Comments
 (0)