File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
33import copy
44import os
5+ import secrets
56import shutil
67import tempfile
7- import secrets
88from contextlib import AsyncExitStack , asynccontextmanager
99from inspect import signature
1010from pathlib import Path
@@ -216,11 +216,13 @@ def __init__(
216216 cast ("Tag | TagList" , ui ), lib_prefix = self .lib_prefix
217217 )
218218
219- def __del__ (self ):
219+ def __del__ (self ) -> None :
220220 current_temp_dir = os .path .realpath (tempfile .gettempdir ())
221221
222- user_dependencies = [
223- v .source ["subdir" ]
222+ # Ignoring a type hint on source["subdir"] because all of our user-created dependencies
223+ # must have a "subdir" source, but the HTMLDependency type allows for other variations.
224+ user_dependencies : list [str ] = [
225+ v .source ["subdir" ] # type: ignore
224226 for k , v in self ._registered_dependencies .items ()
225227 if k .startswith ("include-" )
226228 ]
You can’t perform that action at this time.
0 commit comments