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

staticmethod builtin wrapper hides function signatures #1210

Closed
bschnurr opened this issue Apr 29, 2021 · 2 comments
Closed

staticmethod builtin wrapper hides function signatures #1210

bschnurr opened this issue Apr 29, 2021 · 2 comments
Assignees
Labels
needs investigation Could be an issue - needs investigation

Comments

@bschnurr
Copy link
Member

Environment data

  • Language Server version: XXX
  • OS and version: XXX
  • Python version (& distribution if applicable, e.g. Anaconda): XXX

Expected behaviour

correct function signature
to_wei(number: Union[int, float, str, decimal.Decimal], unit: str) -> int:

Actual behaviour

image

Logs

XXX

Code Snippet / Additional information

from web3 import Web3

Web3.toWei(1, 'ether')
@bschnurr
Copy link
Member Author

this could be more related to the way they are using staticmethod.. i haven't seen it used like this in any other examples. the usage i've see is staticmethod(classname.methodname) or as a fixture.

@bschnurr bschnurr added the needs investigation Could be an issue - needs investigation label May 3, 2021
@github-actions github-actions bot removed the triage label May 3, 2021
@heejaechang heejaechang self-assigned this May 4, 2021
@savannahostrowski
Copy link
Contributor

Fixed upstream ethereum/web3.py#1979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

3 participants