Skip to content

Commit 667a007

Browse files
committed
♻️ Simplify Context type definition
1 parent 90a2835 commit 667a007

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/custom/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ async def on_connect() -> None:
225225

226226
type Bot = CustomBot | CustomRestBot
227227

228-
if not TYPE_CHECKING:
229-
Context: ApplicationContext = ApplicationContext
230-
231-
if TYPE_CHECKING: # temp fix for https://github.com/Pycord-Development/pycord/pull/2611
232-
type Context = ExtContext | ApplicationContext
233-
... # for some reason, this makes pycharm happy
228+
type Context = ExtContext | ApplicationContext
234229

235230
__all__ = ["ApplicationContext", "Bot", "Context", "CustomBot", "CustomRestBot", "ExtContext"]

0 commit comments

Comments
 (0)