mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
chore(lint): say annotate Mapping[...] instead of Mapping alias in typing.Dict ban
This commit is contained in:
parent
0c1a4b127d
commit
d7ca4dc77f
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ max-args = 5
|
|||
"typing.Any".msg = "Use a concrete type. Frozen slots=True dataclass (preferred) / NamedTuple / ReadOnly TypedDict for payloads."
|
||||
"typing_extensions.Any".msg = "Same as typing.Any."
|
||||
"typing.List".msg = "tuple[X, ...] for state, Sequence[X] for params."
|
||||
"typing.Dict".msg = "Frozen dataclass / NamedTuple / ReadOnly TypedDict; if truly dynamic, a Mapping alias with concrete value types, frozen at runtime with types.MappingProxyType({...})."
|
||||
"typing.Dict".msg = "Frozen dataclass / NamedTuple / ReadOnly TypedDict; if truly dynamic, annotate Mapping[...] with concrete value types and freeze at runtime with types.MappingProxyType({...})."
|
||||
"typing.Set".msg = "frozenset[X] or AbstractSet[X]."
|
||||
"typing.MutableSequence".msg = "Sequence[X]."
|
||||
"typing.MutableMapping".msg = "See typing.Dict."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue