nb_cli.prompts
class UndefinedType()
abstract class BasePrompt()
method prompt(self, default=None, no_ansi=False, style=None)
้่ฝฝ
1.
(self, default=<nb_cli.prompts.UndefinedType object>, no_ansi=False, style=None)
ๅๆฐ
default
(UndefinedType)no_ansi
(bool)style
(prompt_toolkit.styles.style.Style | None)
่ฟๅ
- (~ RT)
2.
(self, default, no_ansi=False, style=None)
ๅๆฐ
default
((~ DT))no_ansi
(bool)style
(prompt_toolkit.styles.style.Style | None)
่ฟๅ
- (~ DT) | (~ RT)
class NoAnswer()
class CanceledError()
่ฏดๆ
User cancelled answer.
class Choice(name, data=None)
ๅๆฐ
name
(str)data
((~ RT))
class DisableColorTransformation(no_ansi=False)
ๅๆฐ
no_ansi
(bool)
method transform_attrs(self, attrs)
ๅๆฐ
attrs
(prompt_toolkit.styles.base.Attrs)
่ฟๅ
- prompt_toolkit.styles.base.Attrs