Skip to content

Commit dc29eb0

Browse files
committed
Allow typing extensions to be used instead
1 parent 57ce443 commit dc29eb0

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

bot/migrations.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
import asyncpg
1111
import click
1212
from libs.utils.config import RodhajConfig
13-
14-
try:
15-
from typing import Self
16-
except ImportError:
17-
from typing_extensions import Self
13+
from typing_extensions import Self
1814

1915
path = Path(__file__).parent / "config.yml"
2016
config = RodhajConfig(path)

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ psutil = "^5.9.8"
1717
pygit2 = "^1.13.3"
1818
python-dateutil = "^2.8.2"
1919
click = "^8.1.7"
20-
typing-extensions = {version = "^4.9.0", python = "<3.11"}
20+
typing-extensions = {version = "^4.9.0"}
2121
async-lru = "^2.0.4"
2222
msgspec = "^0.18.6"
2323
jishaku = "^2.5.2"

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ psutil>=5.9.8,<6
77
pygit2>=1.13.3,<2
88
python-dateutil>=2.8.2,<3
99
click>=8.1.7,<9
10-
typing-extensions>=4.9.0,<5 ; python_version < "3.11"
10+
typing-extensions>=4.9.0,<5
1111
async-lru>=2.0.4,<3
1212
msgspec>=0.18.6,<1
1313
jishaku>=2.5.2,<3
1414
watchfiles>=0.21.0,<1
15-
PyYAML>=6.0.1,<7
15+
PyYAML>=6.0.1,<7

0 commit comments

Comments
 (0)