Skip to content

Commit f2c2fb3

Browse files
committed
another spot
1 parent d03283c commit f2c2fb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/codegen/emitmodule.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,15 @@ def parse_and_typecheck(
198198
alt_lib_path: str | None = None,
199199
) -> BuildResult:
200200
assert options.strict_optional, "strict_optional must be turned on"
201+
mypyc_plugin = MypycPlugin(options, compiler_options, groups)
201202
result = build(
202203
sources=sources,
203204
options=options,
204205
alt_lib_path=alt_lib_path,
205206
fscache=fscache,
206-
extra_plugins=[MypycPlugin(options, compiler_options, groups)],
207+
extra_plugins=[mypyc_plugin],
207208
)
209+
mypyc_plugin.metastore.close()
208210
if result.errors:
209211
raise CompileError(result.errors)
210212
return result

0 commit comments

Comments
 (0)