mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: correct type annotation
Overridden `supported_models` should be a `classmethod` rather than a `staticmethod`. PiperOrigin-RevId: 790989895
This commit is contained in:
committed by
Copybara-Service
parent
283303032a
commit
97318bcd19
@@ -282,8 +282,9 @@ class MockModel(BaseLlm):
|
||||
|
||||
return cls(responses=responses)
|
||||
|
||||
@staticmethod
|
||||
def supported_models() -> list[str]:
|
||||
@classmethod
|
||||
@override
|
||||
def supported_models(cls) -> list[str]:
|
||||
return ['mock']
|
||||
|
||||
def generate_content(
|
||||
|
||||
Reference in New Issue
Block a user