Skip to content

Commit 6a9b11a

Browse files
committed
Document value_checker decorator, fixes in imports, improve CONTRIBUCING.md.
1 parent a5fd5e6 commit 6a9b11a

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ This tree does not contain a description of all the files in the repository, onl
4949
│ ├── source/
5050
│ │ Contains images used in documentation.
5151
│ │ │
52-
│ │ ├── images/
53-
│ │ │ Contains images used in documentation.
54-
│ │ │
5552
│ │ ├── conf.py
5653
│ │ │ Sphinx's configuration file.
5754
│ │ │
@@ -79,10 +76,16 @@ This tree does not contain a description of all the files in the repository, onl
7976
│ ├── __init__.py
8077
│ │
8178
│ ├── box.py
82-
│ │ Contains the parent class TextBox which serves as a basis for the implementation of the other classes.
79+
│ │ Contains the parent class BaseTextBox which serves as a basis for the implementation of the other classes.
8380
│ │
8481
│ ├── dialog.py
85-
│ │ Contains the DialogBox class, which is the main class of the library.
82+
│ │ Contains DialogBox class, which is the main class provides by the library.
83+
│ │
84+
│ ├── error.py
85+
│ │ Contains exceptions raised by the library.
86+
│ │
87+
│ ├── type.py
88+
│ │ Contains custom type hinting used by the library.
8689
│ │
8790
│ └── utils.py
8891
│ Contains the classes and functions used but not related to the libriarie.

visualdialog/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
from .box import *
88
from .dialog import *
9+
from .error import *
910
from .type import *
1011
from .utils import *

visualdialog/box.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# box.py
22
# 2020 Timéo Arnouts <[email protected]>
33

4-
__all__ = ["BaseTextBox",
5-
"PanicError"]
4+
__all__ = ["BaseTextBox"]
65

76
import curses
87
import curses.textpad
@@ -17,7 +16,9 @@
1716

1817

1918
def value_checker(initializer: Callable) -> Callable:
20-
"""A decorator """
19+
"""A decorator which checks if the arguments passed to
20+
``BaseTextBox`` initializer are consistent.
21+
"""
2122
def __init__(self,
2223
pos_x, pos_y,
2324
height, width,

0 commit comments

Comments
 (0)