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

@:impl inline get<V> (this:Dict<String, Dynamic>, key:String):V

@:impl @:to inline toDict ():Dict<String, Dynamic>

@:impl inline typed ():T

Static methods

@:impl static inline get<V> (this:Dict<String, Dynamic>, key:String):V

@:impl @:to static inline toDict ():Dict<String, Dynamic>

@:impl static inline typed ():T

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