Skip to content

Commit

Permalink
fix: typ hint
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Oct 24, 2023
1 parent 6cb728e commit ae20d69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_version_pragma_spec(source: Union[str, Path]) -> Optional[SpecifierSet]:
return None


def get_optimization_pragma(source: Union[str, Path]) -> Optional[str | bool]:
def get_optimization_pragma(source: Union[str, Path]) -> str | bool | None:
"""
Extracts optimization pragma information from Vyper source code.
Expand Down
8 changes: 8 additions & 0 deletions tests/contracts/passing_contracts/optimize_codesize.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma version 0.3.10
#pragma optimize codesize

x: uint256

@external
def __init__():
self.x = 0

0 comments on commit ae20d69

Please sign in to comment.