Skip to content

Commit 256f04d

Browse files
committed
Fix darglint
1 parent b2b264c commit 256f04d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crytic_compile/compilation_unit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def crytic_compile(self) -> "CryticCompile":
7070
def source_units(self) -> Dict[Filename, SourceUnit]:
7171
"""
7272
Return the dict of the source units
73+
7374
Returns:
7475
Dict[Filename, SourceUnit]: the source units
7576
"""
@@ -92,6 +93,7 @@ def source_unit(self, filename: Filename) -> SourceUnit:
9293
def asts(self) -> Dict[str, Dict]:
9394
"""
9495
Return all the asts from the compilation unit
96+
9597
Returns:
9698
Dict[str, Dict]: absolute path -> ast
9799
"""
@@ -107,7 +109,7 @@ def create_source_units(self, filename: Filename) -> SourceUnit:
107109
If the source unit already exist, return it
108110
109111
Args:
110-
filename Filename: filename of the source unit
112+
filename (Filename): filename of the source unit
111113
112114
Returns:
113115
SourceUnit: the source unit

crytic_compile/crytic_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CryticCompile:
6565
Main class.
6666
"""
6767

68-
def __init__(self, target: Union[str, AbstractPlatform], **kwargs: str):
68+
def __init__(self, target: Union[str, AbstractPlatform], **kwargs: str) -> None:
6969
"""See https://github.com/crytic/crytic-compile/wiki/Configuration
7070
Target is usually a file or a project directory. It can be an AbstractPlatform
7171
for custom setup

0 commit comments

Comments
 (0)