From abff166697a0b99e42d4e20d48549dab27ec5208 Mon Sep 17 00:00:00 2001
From: Antonio Caceres <antonio@antonio-caceres.com>
Date: Tue, 15 Oct 2024 17:10:46 -0700
Subject: [PATCH] Add mytyping.py to support and update transfer.py.

---
 support/__init__.py | 0
 support/mytyping.py | 4 ++++
 transfer.py         | 2 ++
 3 files changed, 6 insertions(+)
 create mode 100644 support/__init__.py
 create mode 100644 support/mytyping.py

diff --git a/support/__init__.py b/support/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/support/mytyping.py b/support/mytyping.py
new file mode 100644
index 0000000..5bf3552
--- /dev/null
+++ b/support/mytyping.py
@@ -0,0 +1,4 @@
+try:
+    from typing import NoReturn
+except (ImportError, NameError):
+    NoReturn = None
diff --git a/transfer.py b/transfer.py
index 6f22821..7074140 100644
--- a/transfer.py
+++ b/transfer.py
@@ -36,6 +36,8 @@ else:
     shutil.rmtree(os.path.join(disk, 'src'), True)
     shutil.rmtree(os.path.join(disk, 'boot_out.txt'), True)
     shutil.rmtree(os.path.join('src', '__pycache__'), True)
+    shutil.rmtree(os.path.join('support', '__pycache__'), True)
     shutil.copytree('src', os.path.join(disk, 'src'), dirs_exist_ok=True)
+    shutil.copytree('support', os.path.join(disk, 'support'), dirs_exist_ok=True)
     shutil.copy('code.py', os.path.join(disk, 'code.py'))
     print("Done! Switch back to the Serial Monitor!")
-- 
GitLab