We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5db94c commit 8a6ba7dCopy full SHA for 8a6ba7d
src/griffe_runtime_objects/__init__.py
@@ -5,4 +5,6 @@
5
6
from __future__ import annotations
7
8
-__all__: list[str] = []
+from griffe_runtime_objects._internals.extension import RuntimeObjectsExtension
9
+
10
+__all__: list[str] = ["RuntimeObjectsExtension"]
src/griffe_runtime_objects/_internals/__init__.py
src/griffe_runtime_objects/_internals/extension.py
@@ -0,0 +1,5 @@
1
+import griffe
2
3
4
+class RuntimeObjectsExtension(griffe.Extension):
+ """Store runtime objects in Griffe objects' `extra` attribute."""
tests/test_extension.py
@@ -0,0 +1,6 @@
+"""Test extension."""
+def test_extension() -> None:
+ """Dummy test."""
+ assert True
0 commit comments