fix: dont check protocol compliance for experimental methods

This commit is contained in:
Ashwin Bharambe 2025-04-12 12:17:39 -07:00
parent ad86a68a32
commit 8b4158169f
3 changed files with 8 additions and 2 deletions

View file

@ -400,6 +400,8 @@ def check_protocol_compliance(obj: Any, protocol: Any) -> None:
mro = type(obj).__mro__
for name, value in inspect.getmembers(protocol):
if inspect.isfunction(value) and hasattr(value, "__webmethod__"):
if value.__webmethod__.experimental:
continue
if not hasattr(obj, name):
missing_methods.append((name, "missing"))
elif not callable(getattr(obj, name)):