mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 09:43:53 +00:00
chore: mypy for strong_typing
Mostly just ignores because of the dynamic nature of the codebase. One prominent change is expanding the allowed types for attributes tracking property types to allow strings (which are valid and common typing hints in python). Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
ba14552a32
commit
d5b52923c1
7 changed files with 15 additions and 17 deletions
|
|
@ -48,7 +48,7 @@ class DocstringParam:
|
|||
|
||||
name: str
|
||||
description: str
|
||||
param_type: type = inspect.Signature.empty
|
||||
param_type: type | str = inspect.Signature.empty
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f":param {self.name}: {self.description}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue