Skip to content

Commit ddfb67f

Browse files
committed
rebound generic type to avoid custom type
1 parent 999e60d commit ddfb67f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nameless/custom/ui/modal/custom_input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import discord
44
from discord import ui
55

6-
V = TypeVar("V", covariant=True)
6+
V = TypeVar("V", bound=str | int | float | None, covariant=True)
77

88

99
class CustomInput(Generic[V], ui.TextInput[ui.Modal]):

nameless/custom/ui/modal/custom_modal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from .custom_input import CustomInput
66

7-
V = TypeVar("V", covariant=True)
7+
V = TypeVar("V", bound=str | int | float | None, covariant=True)
88

99

1010
class BaseCustomModal(Generic[V], discord.ui.Modal):

0 commit comments

Comments
 (0)