From 8a50312099d8014a10ce36acf2f64d21c98bd4e6 Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Thu, 21 Dec 2023 13:31:36 +0000
Subject: [PATCH] Move the rust stubs inline for better IDE integration
 (#16757)

At least for vscode this allows click through / type checking / syntax
highlighting.
---
 changelog.d/16757.misc                               | 1 +
 stubs/synapse/__init__.pyi                           | 0
 {stubs/synapse => synapse}/synapse_rust/__init__.pyi | 0
 {stubs/synapse => synapse}/synapse_rust/acl.pyi      | 0
 {stubs/synapse => synapse}/synapse_rust/push.pyi     | 0
 5 files changed, 1 insertion(+)
 create mode 100644 changelog.d/16757.misc
 delete mode 100644 stubs/synapse/__init__.pyi
 rename {stubs/synapse => synapse}/synapse_rust/__init__.pyi (100%)
 rename {stubs/synapse => synapse}/synapse_rust/acl.pyi (100%)
 rename {stubs/synapse => synapse}/synapse_rust/push.pyi (100%)

diff --git a/changelog.d/16757.misc b/changelog.d/16757.misc
new file mode 100644
index 0000000000..9856bf1aa6
--- /dev/null
+++ b/changelog.d/16757.misc
@@ -0,0 +1 @@
+Move the rust stubs inline for better IDE integration.
diff --git a/stubs/synapse/__init__.pyi b/stubs/synapse/__init__.pyi
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/stubs/synapse/synapse_rust/__init__.pyi b/synapse/synapse_rust/__init__.pyi
similarity index 100%
rename from stubs/synapse/synapse_rust/__init__.pyi
rename to synapse/synapse_rust/__init__.pyi
diff --git a/stubs/synapse/synapse_rust/acl.pyi b/synapse/synapse_rust/acl.pyi
similarity index 100%
rename from stubs/synapse/synapse_rust/acl.pyi
rename to synapse/synapse_rust/acl.pyi
diff --git a/stubs/synapse/synapse_rust/push.pyi b/synapse/synapse_rust/push.pyi
similarity index 100%
rename from stubs/synapse/synapse_rust/push.pyi
rename to synapse/synapse_rust/push.pyi
-- 
GitLab