Skip to content

Commit

Permalink
Ensure tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
joouha committed Mar 25, 2022
1 parent 5994fd5 commit ebd58c6
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 112 deletions.
22 changes: 20 additions & 2 deletions src/prompt_toolkit/border.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
"""Defines borders."""

from abc import ABCMeta

class SquareBorder:

class Border(metaclass=ABCMeta):
"""Base border type."""

TOP_LEFT: str
TOP_SPLIT: str
TOP_RIGHT: str
HORIZONTAL: str
VERTICAL: str
LEFT_SPLIT: str
RIGHT_SPLIT: str
CROSS: str
BOTTOM_LEFT: str
BOTTOM_SPLIT: str
BOTTOM_RIGHT: str


class SquareBorder(Border):
"""Square thin border."""

TOP_LEFT = "┌"
Expand All @@ -17,7 +35,7 @@ class SquareBorder:
BOTTOM_RIGHT = "┘"


class DoubleBorder:
class DoubleBorder(Border):
"""Box drawing characters with double lines."""

TOP_LEFT = "╔"
Expand Down
Loading

0 comments on commit ebd58c6

Please sign in to comment.