Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example for adding local_filter_middleware to middlewares #1253

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

dylanjw
Copy link
Contributor

@dylanjw dylanjw commented Feb 23, 2019

What was wrong?

Related to Issue #1244

How was it fixed?

Removed the parentheses.

Cute Animal Picture

image

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dylanjw!

@@ -383,7 +383,7 @@ retrieved using JSON-RPC endpoints that don't rely on server state.
>>> from web3 import Web3, EthereumTesterProvider
>>> w3 = Web3(EthereumTesterProvider)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think EthereumTesterProvider should have parens too?

w3 = Web3(EthereumTesterProvider())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! Thanks.

@@ -381,9 +381,9 @@ retrieved using JSON-RPC endpoints that don't rely on server state.
.. code-block:: python
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update these to be doctests so we catch these types of errors in CI. Probably good to revert the changes and confirm the doctest failures and then re-apply the fixes to ensure that doctest is doing what it's supposed to.

@kclowes
Copy link
Collaborator

kclowes commented Apr 3, 2019

@dylanjw do you have time to convert this to a doctest? No worries if not :)

@dylanjw
Copy link
Contributor Author

dylanjw commented Apr 3, 2019

@kclowes I will try to get to it later this week.

@kclowes kclowes merged commit 507f537 into ethereum:master Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants