diff --git a/tests/stubs_check.py b/tests/stubs_check.py index 8cb07c0..2f71c85 100644 --- a/tests/stubs_check.py +++ b/tests/stubs_check.py @@ -34,6 +34,8 @@ def visit_ClassDef(self, node: ast.ClassDef): self.current_cls = None def visit_FunctionDef(self, node: ast.FunctionDef): + if node.name == "_unstable": + return func = getattr(self.current_cls or self.module, node.name) if node.name.startswith("__") or node.name.endswith("serializer"): pass diff --git a/zenoh/__init__.py b/zenoh/__init__.py index e89c094..cbccd94 100644 --- a/zenoh/__init__.py +++ b/zenoh/__init__.py @@ -17,7 +17,3 @@ from . import ext except ImportError: pass - - -def _unstable(item): - return item