-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docstring and type-hinting to gui.cut_list module
- Loading branch information
Showing
10 changed files
with
130 additions
and
9 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
"""Package for code relating to creating a cut list in the GUI. | ||
""" | ||
from ._create_cut_list_task_panel import ( | ||
create_copy_cut_list_to_clipboard_task_panel, | ||
CutListItem, create_copy_cut_list_to_clipboard_task_panel, | ||
create_save_cut_list_to_file_task_panel) | ||
|
||
__all__ = [ | ||
'create_copy_cut_list_to_clipboard_task_panel', | ||
'create_save_cut_list_to_file_task_panel' | ||
'create_save_cut_list_to_file_task_panel', | ||
'CutListItem' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 51 additions & 3 deletions
54
.../gui/cut_list/_create_cut_list_task_panel/create_copy_cut_list_to_clipboard_task_panel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 51 additions & 3 deletions
54
osecore/gui/cut_list/_create_cut_list_task_panel/create_save_cut_list_to_file_task_panel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
osecore/gui/cut_list/_create_cut_list_task_panel/cut_list_item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import NamedTuple | ||
|
||
|
||
"""TODO: Replace with ``TypedDict`` when no longer support <= Py 3.7. | ||
See Also: | ||
https://stackoverflow.com/a/54198204 | ||
""" | ||
|
||
|
||
class CutListItem(NamedTuple): | ||
"""Represents an item in a cut-list. | ||
Used for typing purposes only. | ||
""" | ||
quantity: str | ||
description: str | ||
length: str |