Skip to content

Commit

Permalink
fix: type hint should use Union
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Oct 24, 2023
1 parent ae20d69 commit 8552689
Showing 1 changed file with 1 addition 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]) -> str | bool | None:
def get_optimization_pragma(source: Union[str, Path]) -> Union[str, bool]:
"""
Extracts optimization pragma information from Vyper source code.
Expand Down

0 comments on commit 8552689

Please sign in to comment.