mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Reformat code using black
Segments where readability was hampered were fixed by appropriate format skipping directives. New code should hopefully be black compatible. The moment they remove the -S option is probably the moment I stop using black though.
This commit is contained in:
@ -40,10 +40,11 @@ if TYPE_CHECKING:
|
||||
from .view import View
|
||||
|
||||
|
||||
# fmt: off
|
||||
__all__ = (
|
||||
'TextInput',
|
||||
)
|
||||
|
||||
# fmt: on
|
||||
|
||||
V = TypeVar('V', bound='View', covariant=True)
|
||||
|
||||
@ -177,7 +178,7 @@ class TextInput(Item[V]):
|
||||
def max_length(self) -> Optional[int]:
|
||||
""":class:`int`: The maximum length of the text input."""
|
||||
return self._underlying.max_length
|
||||
|
||||
|
||||
@max_length.setter
|
||||
def max_length(self, value: Optional[int]) -> None:
|
||||
self._underlying.max_length = value
|
||||
|
Reference in New Issue
Block a user