From 63ecb265b6b1c138106247ea5aa42e3848bb705b Mon Sep 17 00:00:00 2001
From: Kyle Altendorf <sda@fstab.net>
Date: Fri, 10 Jan 2025 09:15:46 -0500
Subject: [PATCH 1/2] ban python `*` imports from `chia_rs.datalayer`

---
 wheel/python/chia_rs/datalayer.pyi | 4 ++--
 wheel/stubtest.allowlist           | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/wheel/python/chia_rs/datalayer.pyi b/wheel/python/chia_rs/datalayer.pyi
index fd5edc134..c109d652a 100644
--- a/wheel/python/chia_rs/datalayer.pyi
+++ b/wheel/python/chia_rs/datalayer.pyi
@@ -59,5 +59,5 @@ class MerkleBlob:
 
     def __len__(self) -> int: ...
 
-# TODO: i would rather not specify this at all
-__all__: Sequence[str] = ["InternalNode", "LeafNode", "MerkleBlob"]
+# just disallow * importing so we don't have to maintain this repetitive list
+__all__: Sequence[str] = []
diff --git a/wheel/stubtest.allowlist b/wheel/stubtest.allowlist
index a9869b980..b30aa3393 100644
--- a/wheel/stubtest.allowlist
+++ b/wheel/stubtest.allowlist
@@ -53,3 +53,6 @@ chia_rs\.spend\.SpendConditions\.from_parent
 chia_rs\.Coin\.from_parent
 chia_rs\.CoinSpend\.from_parent
 chia_rs\.SpendBundle\.from_parent
+
+# banning * imports
+chia_rs\.datalayer\.__all__
\ No newline at end of file

From 3f059c20705c0f3b69a96a0779c62c0a73c966cf Mon Sep 17 00:00:00 2001
From: Kyle Altendorf <sda@fstab.net>
Date: Fri, 10 Jan 2025 09:16:28 -0500
Subject: [PATCH 2/2] eof eol

---
 wheel/stubtest.allowlist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wheel/stubtest.allowlist b/wheel/stubtest.allowlist
index b30aa3393..c48e053be 100644
--- a/wheel/stubtest.allowlist
+++ b/wheel/stubtest.allowlist
@@ -55,4 +55,4 @@ chia_rs\.CoinSpend\.from_parent
 chia_rs\.SpendBundle\.from_parent
 
 # banning * imports
-chia_rs\.datalayer\.__all__
\ No newline at end of file
+chia_rs\.datalayer\.__all__