Skip to content

Commit

Permalink
docs: add exclusions and clarify convert examples (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang authored Aug 23, 2024
1 parent 817aa0b commit ff080f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
autodoc_default_options = {
"exclude-members": (
"__repr__, __weakref__, __metaclass__, __init__, __format__, __new__, __str__, __dir__,"
"model_config, model_fields, model_post_init, model_computed_fields,"
"model_config, model_dump, model_fields, model_post_init, model_computed_fields,"
"__ape_extra_attributes__,"
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/ape/api/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def convert(self, value: Any) -> ConvertedType:
convert("1 ETH", int)
# 1000000000000000000
convert("283Af0B28c62C092C9727F1Ee09c02CA627EB7F5", bytes)
convert("0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5", bytes)
# HexBytes('0x283af0b28c62c092c9727f1ee09c02ca627eb7f5')
convert("vitalik.eth", AddressType)
convert("vitalik.eth", AddressType) # with ape-ens plugin installed
# '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
"""

0 comments on commit ff080f2

Please sign in to comment.