Closed NIC619 closed 6 years ago
I don't thing using the *
syntax everywhere is a good idea. There are a lot of places where it's clear what an argument means and in these cases passing it as keyword just adds clutter. Good example: get_notary_info(self, *, notary_address: bytes)
.
@jannikluhn @mhchia @hwwhww I apologize for a sudden code style change. Should've opened an issue first. If this is not a desired improvement, I will revert it. My reason is simply to minimize the chances of passing in arguments in wrong order and also improve readability.
I had thought about not having it enforced on every function too. We could enforce it only on functions that have more than X
parameters like how it's done in py-evm.
@hwwhww @jannikluhn @mhchia Rebased and replace PEP3102 with py-evm code style. And also some minor fix on test cases and type check.
Copied from description.
from_block
/to_block
in get_*_logs
functions
How was it fixed?
from_block
/to_block
inget_*_logs
functionsCute Animal Picture