Skip to content

Commit b167358

Browse files
dguidoclaude
andcommitted
chore: fix type hints and docstrings
- Remove unused type: ignore comment in crytic_compile.py - Update docstring return type to modern syntax in solc.py Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 9a830c3 commit b167358

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crytic_compile/crytic_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def __init__(self, target: str | AbstractPlatform, **kwargs: str) -> None:
202202

203203
self._bytecode_only = False
204204

205-
self._autolink: bool = kwargs.get("compile_autolink", False) # type: ignore
205+
self._autolink: bool = kwargs.get("compile_autolink", False)
206206

207207
self._autolink_deployment_order: list[str] | None = None
208208

crytic_compile/platform/solc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def export_to_solc_from_compilation_unit(
107107
export_dir (str): Export directory
108108
109109
Returns:
110-
Optional[List[str]]: path to the files generated
110+
list[str] | None: paths to the files generated
111111
"""
112112
contracts = _build_contract_data(compilation_unit)
113113

0 commit comments

Comments
 (0)