🌐 AI搜索 & 代理 主页
Skip to content

Commit 60684d3

Browse files
authored
Merge pull request #10 from jwodder/rm-dep
Remove unused `typing_extensions` dependency
2 parents 245b97f + 124f077 commit 60684d3

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v0.3.0 (in development)
2+
-----------------------
3+
- Remove unused `typing_extensions` dependency
4+
15
v0.2.2 (2024-12-01)
26
-------------------
37
- Support Python 3.10, 3.11, 3.12, and 3.13

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ classifiers = [
4444

4545
dependencies = [
4646
"attrs >= 18.1",
47-
"typing_extensions; python_version < '3.8'",
4847
]
4948

5049
[project.urls]

src/mailbits/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Visit <https://github.com/jwodder/mailbits> for more information.
1313
"""
1414

15-
__version__ = "0.2.2"
15+
__version__ = "0.3.0.dev1"
1616
__author__ = "John Thorvald Wodder II"
1717
__author_email__ = "mailbits@varonathe.org"
1818
__license__ = "MIT"

src/mailbits/email2dict.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
from email import headerregistry as hr
55
from email.message import Message
66
import inspect
7-
import sys
8-
from typing import Any, Optional
7+
from typing import Any, Optional, TypedDict
98
from .misc import message2email, parse_addresses
109

11-
if sys.version_info[:2] >= (3, 8):
12-
from typing import TypedDict
13-
else:
14-
from typing_extensions import TypedDict
15-
1610

1711
class MessageDict(TypedDict):
1812
unixfrom: Optional[str]

0 commit comments

Comments
 (0)