search for: type_hint_of_optargt

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

2020 Jul 06
2
[PATCH] python: Add type hints
...String _ -> ": Optional[str]" + | Bool _ -> ": bool" + | Int _ | Int64 _ -> ": int" + | BufferIn _ -> ": bytes" + | StringList _ -> ": List[str]" + | Pointer _ -> "" + in + let type_hint_of_optargt optarg = + match optarg with + | OBool _ -> "bool" + | OInt _ | OInt64 _ -> "int" + | OString _ -> "str" + | OStringList _ -> "List[str]" + in let decl_string = "self" ^ - ma...
2020 Jul 06
0
Re: [PATCH] python: Add type hints
...]" > + | Bool _ -> ": bool" > + | Int _ | Int64 _ -> ": int" > + | BufferIn _ -> ": bytes" > + | StringList _ -> ": List[str]" > + | Pointer _ -> "" > + in > + let type_hint_of_optargt optarg = > + match optarg with > + | OBool _ -> "bool" > + | OInt _ | OInt64 _ -> "int" > + | OString _ -> "str" > + | OStringList _ -> "List[str]" > + in > let decl_string = >...
2020 Jul 07
1
Re: [PATCH] python: Add type hints
...-> ": bool" > > + | Int _ | Int64 _ -> ": int" > > + | BufferIn _ -> ": bytes" > > + | StringList _ -> ": List[str]" > > + | Pointer _ -> "" > > + in > > + let type_hint_of_optargt optarg = > > + match optarg with > > + | OBool _ -> "bool" > > + | OInt _ | OInt64 _ -> "int" > > + | OString _ -> "str" > > + | OStringList _ -> "List[str]" > > + in >...