Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
ac9f6330
Commit
ac9f6330
authored
1 month ago
by
Mateusz Żebrak
Committed by
Mateusz Kudela
1 week ago
Browse files
Options
Downloads
Patches
Plain Diff
CliveActionDialog and CliveInfoDialog should be abstract
parent
543eca54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!600
v1.27.5.21 Release
,
!567
Show dialogs instead of operation summary screens
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clive/__private/ui/dialogs/clive_base_dialogs.py
+3
-3
3 additions, 3 deletions
clive/__private/ui/dialogs/clive_base_dialogs.py
with
3 additions
and
3 deletions
clive/__private/ui/dialogs/clive_base_dialogs.py
+
3
−
3
View file @
ac9f6330
from
__future__
import
annotations
from
__future__
import
annotations
from
abc
import
abstractmethod
from
abc
import
ABC
,
abstractmethod
from
typing
import
TYPE_CHECKING
,
Literal
from
typing
import
TYPE_CHECKING
,
Literal
from
textual
import
on
from
textual
import
on
...
@@ -102,7 +102,7 @@ class CliveBaseDialog(ModalScreen[ScreenResultT], CliveWidget, AbstractClassMess
...
@@ -102,7 +102,7 @@ class CliveBaseDialog(ModalScreen[ScreenResultT], CliveWidget, AbstractClassMess
"""
Yield all the content with buttons.
"""
"""
Yield all the content with buttons.
"""
class
CliveActionDialog
(
CliveBaseDialog
[
ScreenResultT
]):
class
CliveActionDialog
(
CliveBaseDialog
[
ScreenResultT
]
,
ABC
):
BINDINGS
=
[
Binding
(
"
escape
"
,
"
cancel
"
,
"
Quit
"
)]
BINDINGS
=
[
Binding
(
"
escape
"
,
"
cancel
"
,
"
Quit
"
)]
class
Confirmed
(
Message
):
class
Confirmed
(
Message
):
...
@@ -133,7 +133,7 @@ class CliveActionDialog(CliveBaseDialog[ScreenResultT]):
...
@@ -133,7 +133,7 @@ class CliveActionDialog(CliveBaseDialog[ScreenResultT]):
self
.
app
.
pop_screen
()
self
.
app
.
pop_screen
()
class
CliveInfoDialog
(
CliveBaseDialog
[
ScreenResultT
]):
class
CliveInfoDialog
(
CliveBaseDialog
[
ScreenResultT
]
,
ABC
):
BINDINGS
=
[
Binding
(
"
escape
"
,
"
close
"
,
"
Quit
"
)]
BINDINGS
=
[
Binding
(
"
escape
"
,
"
close
"
,
"
Quit
"
)]
def
create_buttons_content
(
self
)
->
ComposeResult
:
def
create_buttons_content
(
self
)
->
ComposeResult
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment