search for: type_hint_of_argt

Displaying 3 results from an estimated 3 matches for "type_hint_of_argt".

2020 Jul 06
2
[PATCH] python: Add type hints
...str" + | RBufferOut _ -> "bytes" + | RStringList _ -> "List[str]" + | RStruct _ -> "dict" + | RStructList _ -> "List[dict]" + | RHashtable _ -> "Union[List[Tuple[str, str]], dict]" in + let type_hint_of_argt arg = + match arg with + | String _ -> ": str" + | OptString _ -> ": Optional[str]" + | Bool _ -> ": bool" + | Int _ | Int64 _ -> ": int" + | BufferIn _ -> ": bytes" + | StringList _ -&...
2020 Jul 06
0
Re: [PATCH] python: Add type hints
...ferOut _ -> "bytes" > + | RStringList _ -> "List[str]" > + | RStruct _ -> "dict" > + | RStructList _ -> "List[dict]" > + | RHashtable _ -> "Union[List[Tuple[str, str]], dict]" in > + let type_hint_of_argt arg = > + match arg with > + | String _ -> ": str" > + | OptString _ -> ": Optional[str]" > + | Bool _ -> ": bool" > + | Int _ | Int64 _ -> ": int" > + | BufferIn _ -> ": bytes&qu...
2020 Jul 07
1
Re: [PATCH] python: Add type hints
...s" > > + | RStringList _ -> "List[str]" > > + | RStruct _ -> "dict" > > + | RStructList _ -> "List[dict]" > > + | RHashtable _ -> "Union[List[Tuple[str, str]], dict]" in > > + let type_hint_of_argt arg = > > + match arg with > > + | String _ -> ": str" > > + | OptString _ -> ": Optional[str]" > > + | Bool _ -> ": bool" > > + | Int _ | Int64 _ -> ": int" > > + | Buf...