Skip to content

Commit e5d8713

Browse files
authored
Merge pull request #3583 from jasongrout/migrationitems
Remove migration note about selection widgets and dictionaries
2 parents 1609e12 + 3aaa094 commit e5d8713

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

docs/source/migration_guides.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ The version of [Backbone.js](https://backbonejs.org/) that ipywidgets depends on
169169

170170
If you were using `.extend()`, you will also need to change how your model attribute defaults are defined. The model defaults are now given by a function that returns the defaults and includes the superclass defaults. For example, the Output widget model [looks like this](https://github.com/jupyter-widgets/ipywidgets/blob/8.0.0/packages/output/src/output.ts):
171171

172-
```typescript
172+
```javascript
173173
export const OUTPUT_WIDGET_VERSION = '1.0.0';
174174

175175
export class OutputModel extends DOMWidgetModel {
176-
defaults(): Backbone.ObjectHash {
176+
defaults() {
177177
return {
178178
...super.defaults(),
179179
_model_name: 'OutputModel',

docs/source/user_migration_guides.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ that inherit `DOMWidget` have the attribute `tooltip` instead.
4040
Suggested migration: Search and replace `description_tooltip` to `tooltip` when you no longer
4141
need to support ipywidgets 7.
4242

43-
#### Selection Widgets
44-
45-
These widgets include: `ToggleButtons`, `Dropdown`, `RadioButtons`, `Select`, `SelectMultiple` `Selection`, `SelectionSlider`, and `SelectionRangeSlider`.
46-
47-
For these, it is no longer possible to use `dict`s or other mapping types as values for the
48-
`options` trait. Using mapping types in this way has been deprecated since version 7.4, and
49-
will now raise a `TypeError`.
50-
51-
Suggested migration: Instead of using a dict `my_dict` as options, use `my_dict.items()`, which returns the items in `my_dict` as key-value pairs. For example, `Select(options=my_dict.items())`.
52-
5343
#### Description Sanitization
5444

5545
The value of the `description` field of any widget that inherits `DescriptionWidget`

0 commit comments

Comments
 (0)