Skip to content

Commit ddf6493

Browse files
Fix type issue with widgets.getArgument (#581)
## Changes <!-- Summary of your changes that are easy to understand --> - The `str | None` used previously doesn't work with older version of python, fixing it so that it unblocks integration test and release ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [x] `make fmt` applied - [x] relevant integration tests applied
1 parent e861140 commit ddf6493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

databricks/sdk/runtime/dbutils_stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def get(name: str) -> str:
288288
...
289289

290290
@staticmethod
291-
def getArgument(name: str, defaultValue: typing.Optional[str] = None) -> str | None:
291+
def getArgument(name: str, defaultValue: typing.Optional[str] = None) -> typing.Optional[str]:
292292
"""Returns the current value of a widget with give name.
293293
:param name: Name of the argument to be accessed
294294
:param defaultValue: (Deprecated) default value

0 commit comments

Comments
 (0)