Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit da79de1

Browse files
committed
Global import restrictions
1 parent 895f1f9 commit da79de1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: sculpting/core.py

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
from sculpting.tools import setting_of_attr
99

1010

11+
__all__ = (
12+
"Sculpture",
13+
"AttributeMap",
14+
"attribute_map_for",
15+
"property_attribute_map_as"
16+
)
17+
18+
1119
_MAGIC_METHODS_NAMES: Final[Tuple[str]] = (
1220
"__pos__", "__neg__", "__abs__", "__invert__", "__round__", "__floor__",
1321
"__ceil__", "__iadd__", "__isub__", "__imul__", "__ifloordiv__", "__idiv__",

Diff for: sculpting/tools.py

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
from sculpting.annotations import attribute_setter
77

88

9+
__all__ = ("setting_of", )
10+
11+
912
def setting_of_attr(attribute_name: str, *, value_transformer: handler = return_) -> attribute_setter:
1013
"""
1114
Function to get a function to change an attribute of a given name.

0 commit comments

Comments
 (0)