refactor: Remove MultilineMixin from StrInput class
This commit removes the MultilineMixin from the StrInput class in the inputs.py file. The MultilineMixin was unnecessary for the StrInput class and removing it simplifies the code and improves code clarity.
This commit is contained in:
parent
95f1c563ef
commit
2c2cc968e8
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class PromptInput(BaseInputMixin, ListableInputMixin):
|
|||
|
||||
|
||||
# Applying mixins to a specific input type
|
||||
class StrInput(BaseInputMixin, ListableInputMixin, DatabaseLoadMixin, MultilineMixin):
|
||||
class StrInput(BaseInputMixin, ListableInputMixin, DatabaseLoadMixin):
|
||||
field_type: Optional[SerializableFieldTypes] = FieldTypes.TEXT
|
||||
load_from_db: CoalesceBool = False
|
||||
"""Defines if the field will allow the user to open a text editor. Default is False."""
|
||||
|
|
@ -162,7 +162,7 @@ class TextInput(StrInput):
|
|||
return value
|
||||
|
||||
|
||||
class MultilineInput(BaseInputMixin, MultilineMixin):
|
||||
class MultilineInput(TextInput, MultilineMixin):
|
||||
"""
|
||||
Represents a multiline input field.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue