W3cubDocs

/Haxe Python

KwArgs<T>(Dict<String, Dynamic>)

package python

Available on python

This type represents python **kwargs feature, supporting passing named arguments to a function.

Example:

function f(kwargs:KwArgs<{a:Int}>) {}
f({a: 10});

Methods

inline get<V> (key:String, def:V ):V

inline toDict ():Dict<String, Dynamic>

inline typed ():T

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/python/KwArgs.html