# StaticString as keys in \*\*kwargs

**URL:** <https://forum.modular.com/t/staticstring-as-keys-in-kwargs/1671>\
**Category:** Mojo\
**Tags:** feature-request\
**Created:** [June 16, 2025, 2:29pm UTC](https://forum.modular.com/t/staticstring-as-keys-in-kwargs/1671 "2025-06-16T14:29:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil.martens](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/emil.martens/32/543_2.png) [@emil.martens](https://forum.modular.com/u/emil.martens)\
**Post date:** [June 16, 2025, 2:29pm UTC](https://forum.modular.com/t/staticstring-as-keys-in-kwargs/1671/1 "2025-06-16T14:29:31Z")

</div>

Hi, would it be possible to use `StaticString` instead of `String` as the key type when using `**kwargs`? This would make it easier to create lists of `ConstantMemoryMapping` among other things.

---

<div class="post-metadata">

**Author:** ![emil.martens](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/emil.martens/32/543_2.png) [@emil.martens](https://forum.modular.com/u/emil.martens)\
**Post date:** [June 16, 2025, 2:59pm UTC](https://forum.modular.com/t/staticstring-as-keys-in-kwargs/1671/2 "2025-06-16T14:59:10Z")

</div>

Or, I guess using `String` might make more sense when Mojo gets dict unpacking like `foo(**kwarg)`. I assume statically assigned names e.g. `foo(x=1, y=2, z=3)` could be parametric in the future.
