diff --git a/dev_tools/bash_scripts_test.py b/dev_tools/bash_scripts_test.py
index <HASH>..<HASH> 100644
--- a/dev_tools/bash_scripts_test.py
+++ b/dev_tools/bash_scripts_test.py
@@ -18,7 +18,7 @@ from typing import TYPE_CHECKING, Iterable
 from dev_tools import shell_tools
 
 if TYPE_CHECKING:
-    import _pytest
+    import _pytest.tmpdir
 
 
 def only_on_posix(func):
fix bad import (#<I>)

Re-adding the mistakenly removed fix for a mypy error. 

Thanks for noticing @mpharrigan <URL>