Skip to content

Commit fa2d8a9

Browse files
committed
Attempt to fix mypy error
1 parent 834847b commit fa2d8a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

thinc/tests/regression/issue519/test_issue519.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import subprocess
2+
23
try:
34
import importlib.resources as importlib_resources
45
except ImportError:
@@ -16,10 +17,12 @@ def test_issue519():
1617
This test can take up to 45 seconds, and is thus marked as slow.
1718
"""
1819
# Determine the name of the parent module (which contains the test program)
19-
parent_module_name = __name__[:__name__.rfind(".")]
20+
parent_module_name = __name__[: __name__.rfind(".")]
2021

2122
# Load test program that calls a Thinc API with variadic arguments
2223
program_text = importlib_resources.read_text(parent_module_name, "program.py")
2324

2425
# Ask Mypy to type-check the loaded program text
25-
subprocess.run(["mypy", "--command", program_text], check=True)
26+
subprocess.run(
27+
["mypy", "--command", program_text, "--package", "thinc"], check=True
28+
)

0 commit comments

Comments
 (0)