We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
elif
1 parent fb8a329 commit 36cd496Copy full SHA for 36cd496
newsfragments/2179.misc.rst
@@ -0,0 +1 @@
1
+Clean up elif statement in contract.py
web3/contract.py
@@ -887,9 +887,7 @@ def _set_function_info(self) -> None:
887
self.args,
888
self.kwargs
889
)
890
- if self.function_identifier is FallbackFn:
891
- self.selector = encode_hex(b'')
892
- elif self.function_identifier is ReceiveFn:
+ if self.function_identifier in [FallbackFn, ReceiveFn]:
893
self.selector = encode_hex(b'')
894
elif is_text(self.function_identifier):
895
# https://github.com/python/mypy/issues/4976
0 commit comments