Skip to content

Commit

Permalink
Fix type issue with widgets.getArgument (#581)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
edwardfeng-db authored Mar 7, 2024
1 parent e861140 commit ddf6493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databricks/sdk/runtime/dbutils_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get(name: str) -> str:
...

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

0 comments on commit ddf6493

Please sign in to comment.