(nu_plugin_python): Send back the signature required fields. (#7489)

# Description

The `Signature` data structure has changed. We need to add the required
fields for the nu plugin in python to work well when registering it.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass
This commit is contained in:
Andrés N. Robalino 2022-12-15 15:37:12 -05:00 committed by GitHub
parent 075c83b3a1
commit 8c70189422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ def signatures():
"shape": "String",
"var_id": None,
},
"vectorizes_over_list": False,
"named": [
{
"long": "help",
@ -97,6 +98,8 @@ def signatures():
"var_id": None,
},
],
"input_output_types": [["Any", "Any"]],
"allow_variants_without_examples": True,
"search_terms": ["Python", "Example"],
"is_filter": False,
"creates_scope": False,