mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 00:34:44 +00:00
remove unnecessary changes
This commit is contained in:
parent
04e6998d6f
commit
6e476a0575
1 changed files with 1 additions and 1 deletions
|
@ -345,6 +345,7 @@ def check_protocol_compliance(obj: Any, protocol: Any) -> None:
|
|||
)
|
||||
missing_methods.append((name, "signature_mismatch"))
|
||||
else:
|
||||
# Check if the method is actually implemented in the class
|
||||
method_owner = next(
|
||||
(cls for cls in mro if name in cls.__dict__), None
|
||||
)
|
||||
|
@ -352,7 +353,6 @@ def check_protocol_compliance(obj: Any, protocol: Any) -> None:
|
|||
method_owner is None
|
||||
or method_owner.__name__ == protocol.__name__
|
||||
):
|
||||
print(mro)
|
||||
missing_methods.append((name, "not_actually_implemented"))
|
||||
|
||||
if missing_methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue