mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed group plugin compatibility with Python < 3.10
This commit is contained in:
parent
1cf9c964f8
commit
4c192d3ab7
@ -18,8 +18,6 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from mkdocs.config.config_options import Type
|
||||
from mkdocs.config.base import Config
|
||||
|
||||
@ -30,4 +28,4 @@ from mkdocs.config.base import Config
|
||||
# Group plugin configuration
|
||||
class GroupConfig(Config):
|
||||
enabled = Type(bool, default = False)
|
||||
plugins = Type(list | dict)
|
||||
plugins = Type((list, dict))
|
||||
|
@ -18,6 +18,8 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from collections.abc import Callable
|
||||
|
@ -18,8 +18,6 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from mkdocs.config.config_options import Type
|
||||
from mkdocs.config.base import Config
|
||||
|
||||
@ -30,4 +28,4 @@ from mkdocs.config.base import Config
|
||||
# Group plugin configuration
|
||||
class GroupConfig(Config):
|
||||
enabled = Type(bool, default = False)
|
||||
plugins = Type(list | dict)
|
||||
plugins = Type((list, dict))
|
||||
|
@ -18,6 +18,8 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from collections.abc import Callable
|
||||
|
Loading…
Reference in New Issue
Block a user