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

Type annotation issue on databricks.sdk.dbutils._ProxyUtil.__call__ #737

Open
oliverbeagley-pgg opened this issue Aug 27, 2024 · 1 comment

Comments

@oliverbeagley-pgg
Copy link

I believe that the type hint on the call method for _ProxyUtil is causing type issues when using

databricks.sdk.runtime.dbutils

For this

from databricks.sdk.runtime import dbutils

dbutils.notebook.exit("")

mypy gives me the error

a.py:3: error: Too many arguments for "__call__"  [call-arg]
Found 1 error in 1 file (checked 1 source file)

Changing this line from

def __call__(self):

to

 def __call__(self, *args, **kwargs): 

rectifies this issue, though I am not sure if this has any effect elsewhere

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

No branches or pull requests

2 participants
@oliverbeagley-pgg and others