Skip to content

PartMap fails with converter=None #221

@EmmaTinten

Description

@EmmaTinten

Using multipart and Partmap results in a NoneType error.

To Reproduce
Create a simple multipart def:

@multipart
@post('engine-rest/deployment/create')
 def deployment_create(
      self,
      **params: PartMap,
): 
      pass

and use it. Will produce an error:

site-packages/uplink/converters/keys.py", line 70, in <genexpr>
    return dict((k, converter(value[k])) for k in value)
TypeError: 'NoneType' object is not callable

Expected behavior
The submitted params should work just like the QueryMap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions