Skip to content

Conversation

@oprypin
Copy link
Contributor

@oprypin oprypin commented Aug 1, 2023

In 1.5.0 extra_javascript was changed to become a list[ExtraScriptValue], but strings could sneak in anyway, although MkDocs would never put them there anymore.

Let's change it to officially be list[ExtraScriptValue | str] but typically these items will be strings once again, unless specified as a dictionary in the config in the first place. This will guard plugins that aren't updated yet from a breakages unless users actually use mjs files.

In 1.5.0 `extra_javascript` was changed to become a `list[ExtraScriptValue]`, but strings could sneak in anyway, although MkDocs would never put them there anymore.

Let's change it to officially be `list[ExtraScriptValue | str]` but typically these items will be strings once again, unless specified as a dictionary in the config in the first place. This will guard plugins that aren't updated yet from a breakages unless users actually use `mjs` files.
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

Successfully merging this pull request may close these issues.

Unhashable type: 'ExtraScriptValue' Error

2 participants