Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Mar 28, 2024
1 parent b4260b1 commit 98f37bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion slither/core/slither_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _compute_offsets_from_thing(self, thing: SourceMapping):

for offset in range(definition.start, definition.end + 1):
if (
isinstance(thing, TopLevel)
isinstance(thing, (TopLevel, Contract))
or (
isinstance(thing, FunctionContract)
and thing.contract_declarer == thing.contract
Expand Down
1 change: 1 addition & 0 deletions tests/unit/core/test_virtual_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


def test_overrides(solc_binary_path) -> None:
# pylint: disable=too-many-statements,too-many-locals
solc_path = solc_binary_path("0.8.15")
slither = Slither(Path(TEST_DATA_DIR, "virtual_overrides.sol").as_posix(), solc=solc_path)

Expand Down

0 comments on commit 98f37bc

Please sign in to comment.