Skip to content

Commit 671b8ed

Browse files
committed
chg: Use python 3.9+ syntax
1 parent 91e7c3a commit 671b8ed

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

har2tree/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from collections import defaultdict
1414
from io import BytesIO
1515
from logging import LoggerAdapter
16-
from typing import Mapping, MutableMapping, Any
16+
from typing import Any
17+
from collections.abc import Mapping, MutableMapping
1718
from urllib.parse import urlparse, unquote_plus, unquote_to_bytes, urljoin
1819

1920
import filetype # type: ignore

har2tree/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
from hashlib import sha256
1919
from io import BytesIO
2020
from pathlib import Path
21-
from typing import MutableMapping, Any
21+
from typing import Any
22+
from collections.abc import MutableMapping
2223
from urllib.parse import unquote_plus, urlparse, urljoin
2324

2425
import filetype # type: ignore

har2tree/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import copy
77
from datetime import datetime
88
from collections import defaultdict
9-
from typing import Iterable
9+
from collections.abc import Iterable
1010
import logging
1111
from .har2tree import Har2Tree
1212
from .nodes import URLNode

0 commit comments

Comments
 (0)