Skip to content

Commit 541384d

Browse files
committed
fix(types): remove Union since option does not support boolean anymore and it was breaking Python< 3.10
Thanks to @pawamoy (mkdocs/mkdocs#3753 (comment))
1 parent 00c5b94 commit 541384d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mkdocs_rss_plugin/config.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# ########## Libraries #############
55
# ##################################
66

7-
# standard
8-
from typing import Union
9-
107
# 3rd party
118
from mkdocs.config import config_options
129
from mkdocs.config.base import Config
@@ -21,8 +18,8 @@ class _DateFromMeta(Config):
2118

2219
# TODO: remove deprecated code in future version. Only str values will be accepted
2320
# for as_creation and as_update
24-
as_creation = config_options.Type(Union[bool, str], default="git")
25-
as_update = config_options.Type(Union[bool, str], default="git")
21+
as_creation = config_options.Type(str, default="git")
22+
as_update = config_options.Type(str, default="git")
2623
datetime_format = config_options.Type(str, default="%Y-%m-%d %H:%M")
2724
default_time = config_options.Type(str, default="00:00")
2825
default_timezone = config_options.Type(str, default="UTC")

0 commit comments

Comments
 (0)