You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Different behavior for SingleKey and DottedKey with single value #430
I am building a tomlkit document and want to generate keys dynamically. Sometimes the lengths of my key specifications are only 1 long, but tomlkit still generates a DottedKey out of it. The documentation of tomlkit.key is very clear about it: specifying a list will return a DottedKey.
But I think it would be a nice addition if the function checks the length of the list before making that decision.
Activity
Return a single key from key() for a single-element list (#520)