Skip to content

Commit

Permalink
chore: add python 312 black value and use elif in a spot (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored May 2, 2024
1 parent ee523b8 commit e7321e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def enrich_error(self, err: ContractLogicError) -> ContractLogicError:
# Nothing to do.
return err

if panic_cls := _get_sol_panic(err.revert_message):
elif panic_cls := _get_sol_panic(err.revert_message):
return panic_cls(
base_err=err.base_err,
contract_address=err.contract_address,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ write_to = "ape_solidity/version.py"

[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311']
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'

[tool.pytest.ini_options]
Expand Down

0 comments on commit e7321e5

Please sign in to comment.