stephen-bunn/file-config

Config dump handler does not pass kwargs like dumps

Closed this issue · 1 comments

Expected Behavior

Both dump_{x} and dumps_{x} should allow the same kwargs to be passed...

from file_config import config, var

@config
class MyConfig(object):
    name = var(str)

c = MyConfig(name="Name")
c.dumps_json(indent=2)
# or...
with open("/some/file.json", "w") as fp:
    c.dump_json(fp, indent=2)

Current Behavior

dump_{x} handlers do not accept any kwargs while dumps_{x} handlers do.

Your Environment

  • File Config Version: 0.3.2
  • Python Version: 3.7
  • Operating System and Version: Ubuntu 18.04

❤️ Thank you!

Fixed in d84f94b