mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-30 18:24:35 +01: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
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from mkdocs.config.config_options import Type
|
from mkdocs.config.config_options import Type
|
||||||
from mkdocs.config.base import Config
|
from mkdocs.config.base import Config
|
||||||
|
|
||||||
@ -30,4 +28,4 @@ from mkdocs.config.base import Config
|
|||||||
# Group plugin configuration
|
# Group plugin configuration
|
||||||
class GroupConfig(Config):
|
class GroupConfig(Config):
|
||||||
enabled = Type(bool, default = False)
|
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
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from mkdocs.config.config_options import Type
|
from mkdocs.config.config_options import Type
|
||||||
from mkdocs.config.base import Config
|
from mkdocs.config.base import Config
|
||||||
|
|
||||||
@ -30,4 +28,4 @@ from mkdocs.config.base import Config
|
|||||||
# Group plugin configuration
|
# Group plugin configuration
|
||||||
class GroupConfig(Config):
|
class GroupConfig(Config):
|
||||||
enabled = Type(bool, default = False)
|
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
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
Loading…
Reference in New Issue
Block a user