djblets.util.typing¶
Common type definitions used for Djblets and consuming projects.
New in version 3.3.
- JSONValue¶
A type indicating a valid value in JSON data.
New in version 3.3.
alias of
Union[JSONDict,JSONList,None,bool,float,int,str]
- JSONDict¶
A type for a JSON dictionary mapping strings to JSON vlaues.
New in version 3.3.
alias of
Dict[str,Union[JSONDict,JSONList,None,bool,float,int,str]]
- JSONList¶
A type for a JSON list of values.
New in version 3.3.
alias of
List[Union[JSONDict,JSONList,None,bool,float,int,str]]
- KwargsDict¶
A type indicating a dictionary used for keyword arguments.
New in version 3.3.
- StrOrPromise¶
A type indicating a Unicode string or lazily-localized string.
New in version 3.3.
alias of
Union[str,StrPromise]
- StrPromise¶
A type indicating a lazily-localized string.
New in version 3.3.
alias of
Promise