File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11
11
from email .utils import formatdate
12
12
from pathlib import Path
13
13
from re import compile as re_compile
14
- from typing import List , Literal , Optional
14
+ from typing import Literal , Optional
15
15
16
16
# 3rd party
17
17
from jinja2 import Environment , FileSystemLoader , select_autoescape
@@ -79,7 +79,7 @@ def on_startup(
79
79
# flag used command to disable some actions if serve is used
80
80
self .cmd_is_serve = command == "serve"
81
81
82
- self .pages_to_filter : List [PageInformation ] = []
82
+ self .pages_to_filter : list [PageInformation ] = []
83
83
# prepare output feeds
84
84
self .feed_created : dict = {}
85
85
self .feed_updated : dict = {}
Original file line number Diff line number Diff line change @@ -755,16 +755,20 @@ def test_json_feed_validation(self):
755
755
self .assertIsNone (cli_result .exception )
756
756
757
757
# created items
758
- with Path (tmpdirname ).joinpath (OUTPUT_JSON_FEED_CREATED ).open (
759
- "r" , encoding = "UTF-8"
760
- ) as in_json :
758
+ with (
759
+ Path (tmpdirname )
760
+ .joinpath (OUTPUT_JSON_FEED_CREATED )
761
+ .open ("r" , encoding = "UTF-8" ) as in_json
762
+ ):
761
763
json_feed_created_data = json .load (in_json )
762
764
jsonfeed .Feed .parse (json_feed_created_data )
763
765
764
766
# updated items
765
- with Path (tmpdirname ).joinpath (OUTPUT_JSON_FEED_UPDATED ).open (
766
- "r" , encoding = "UTF-8"
767
- ) as in_json :
767
+ with (
768
+ Path (tmpdirname )
769
+ .joinpath (OUTPUT_JSON_FEED_UPDATED )
770
+ .open ("r" , encoding = "UTF-8" ) as in_json
771
+ ):
768
772
json_feed_updated_data = json .load (in_json )
769
773
jsonfeed .Feed .parse (json_feed_updated_data )
770
774
You can’t perform that action at this time.
0 commit comments