Skip to content

Commit

Permalink
Merge pull request #114 from DanielSchiavini/master-fix
Browse files Browse the repository at this point in the history
Check if there is a doc_string
  • Loading branch information
charles-cooper authored Dec 22, 2023
2 parents b0099d5 + f3d9cf0 commit 87593bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

### How to verify it

### Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see [our commit message style guide](../../master/docs/style-guide.rst#best-practices-1) for what we would ideally like to see in a commit message.)

### Description for the changelog

### Cute Animal Picture
Expand Down
4 changes: 3 additions & 1 deletion boa/vyper/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,9 @@ def __init__(self, fn_ast, contract):
self.contract = contract
self.env = contract.env

self.__doc__ = fn_ast.doc_string.value
self.__doc__ = (
fn_ast.doc_string.value if hasattr(fn_ast, "doc_string") else None
)
self.__module__ = self.contract.compiler_data.contract_name

def __repr__(self):
Expand Down

0 comments on commit 87593bb

Please sign in to comment.